Interface IDeliveryApiOutputCacheTagProvider
Provides additional cache tags when caching a Delivery API content or media response.
Namespace: Umbraco.Cms.Core.Cache
Assembly: Umbraco.Core.dll
Syntax
public interface IDeliveryApiOutputCacheTagProvider
Remarks
Multiple implementations can be registered; the output cache policy iterates all of them to collect tags at cache-write time. Works as a pair with IDeliveryApiOutputCacheEvictionProvider: the tag provider adds custom tags when caching, and the eviction provider maps content changes back to those tags at eviction time.
Methods
View SourceGetTags(IPublishedContent)
Returns additional cache tags for the given published content or media item.
Declaration
IEnumerable<string> GetTags(IPublishedContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content | The published content or media item being cached. |
Returns
| Type | Description |
|---|---|
| IEnumerable<string> | Additional cache tags to associate with the cached response. |