November Happy Hour will be moved to Thursday December 5th.

Interface IContentInstanceCache

Supporting API to content provider that deals with reading and inserting IContent into cache

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

Methods

CreateCacheSettings(ContentReference)

Declaration
CacheSettings CreateCacheSettings(ContentReference contentLink)
Parameters
Type Name Description
ContentReference contentLink
Returns
Type Description
CacheSettings

Insert(IContent, String, CacheEvictionPolicy)

Declaration
void Insert(IContent content, string language, CacheEvictionPolicy evictionPolicy)
Parameters
Type Name Description
IContent content
System.String language
CacheEvictionPolicy evictionPolicy

ReadThrough(ContentReference, String, Func<IContent>)

Declaration
IContent ReadThrough(ContentReference contentLink, string selectedLanguage, Func<IContent> readValue)
Parameters
Type Name Description
ContentReference contentLink
System.String selectedLanguage
System.Func<IContent> readValue
Returns
Type Description
IContent

TryGet(ContentReference, String, out IContent)

Declaration
bool TryGet(ContentReference contentLink, string language, out IContent instance)
Parameters
Type Name Description
ContentReference contentLink
System.String language
IContent instance
Returns
Type Description
System.Boolean

Extension Methods