SaaS CMS has officially launched! Learn more now.

Interface IContentUrlCache

Signature for component that handles caching of content urls

Namespace: EPiServer.Core.Routing.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public interface IContentUrlCache

Methods

Get(ContentUrlCacheContext)

Gets a previously resolved url from cache if it exist else null

Declaration
GeneratedUrl Get(ContentUrlCacheContext context)
Parameters
Type Name Description
ContentUrlCacheContext context

The context for the url resolving

Returns
Type Description
GeneratedUrl

The content url

Insert(GeneratedUrl, ContentUrlCacheContext)

Inserts a resolved content url to cache

Declaration
void Insert(GeneratedUrl url, ContentUrlCacheContext context)
Parameters
Type Name Description
GeneratedUrl url

The resolved url

ContentUrlCacheContext context

The context for the resolving

Remove(ContentReference)

Called when a content has changed

Declaration
void Remove(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink

The content link for which to remove related cache entries

Extension Methods