Class ContentInstanceCache
Supporting API to content provider that deals with reading and inserting IContent into cache
Inheritance
System.Object
ContentInstanceCache
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration(ServiceType = null, IncludeServiceAccessor = false)]
public class ContentInstanceCache : Object, IContentInstanceCache
Constructors
ContentInstanceCache(ISynchronizedObjectInstanceCache, IContentCacheKeyCreator, ContentOptions)
Declaration
public ContentInstanceCache(ISynchronizedObjectInstanceCache cache, IContentCacheKeyCreator cacheKeyCreator, ContentOptions options)
Parameters
Properties
CacheEnabled
Declaration
public Func<bool> CacheEnabled { get; set; }
Property Value
Type |
Description |
System.Func<System.Boolean> |
|
ContextSlidingExpiration
Declaration
public Func<Nullable<TimeSpan>> ContextSlidingExpiration { get; set; }
Property Value
Type |
Description |
System.Func<System.Nullable<System.TimeSpan>> |
|
Methods
CreateCacheSettings(ContentReference)
Declaration
public CacheSettings CreateCacheSettings(ContentReference contentLink)
Parameters
Returns
Insert(IContent, String, CacheEvictionPolicy)
Declaration
public virtual void Insert(IContent content, string language, CacheEvictionPolicy evictionPolicy)
Parameters
ReadThrough(ContentReference, String, Func<IContent>)
Declaration
public virtual IContent ReadThrough(ContentReference contentLink, string selectedLanguage, Func<IContent> readValue)
Parameters
Returns
TryGet(ContentReference, String, out IContent)
Declaration
public virtual bool TryGet(ContentReference contentLink, string language, out IContent instance)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Extension Methods