Try our conversational search powered by Generative AI!

Interface IContentInstanceCache

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Supporting API to content provider that deals with reading and inserting IContent into cache

Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 11.20.7
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