Interface IRuntimeCache

Namespace: EPiServer.BaseLibrary
Assembly: EPiServer.BaseLibrary.dll
Version: 8.11.0
Syntax
public interface IRuntimeCache

Methods

Add(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemPriority)

Declaration
object Add(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority)
Parameters
Type Name Description
System.String key
System.Object value
System.Web.Caching.CacheDependency dependencies
System.DateTime absoluteExpiration
System.TimeSpan slidingExpiration
System.Web.Caching.CacheItemPriority priority
Returns
Type Description
System.Object

Add(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback)

Declaration
object Add(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
Parameters
Type Name Description
System.String key
System.Object value
System.Web.Caching.CacheDependency dependencies
System.DateTime absoluteExpiration
System.TimeSpan slidingExpiration
System.Web.Caching.CacheItemPriority priority
System.Web.Caching.CacheItemRemovedCallback onRemoveCallback
Returns
Type Description
System.Object

Clear()

Declaration
void Clear()

Get(String)

Declaration
object Get(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.Object

Insert(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemPriority)

Declaration
void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority)
Parameters
Type Name Description
System.String key
System.Object value
System.Web.Caching.CacheDependency dependencies
System.DateTime absoluteExpiration
System.TimeSpan slidingExpiration
System.Web.Caching.CacheItemPriority priority

Insert(String, Object, CacheDependency, DateTime, TimeSpan, CacheItemPriority, CacheItemRemovedCallback)

Declaration
void Insert(string key, object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback)
Parameters
Type Name Description
System.String key
System.Object value
System.Web.Caching.CacheDependency dependencies
System.DateTime absoluteExpiration
System.TimeSpan slidingExpiration
System.Web.Caching.CacheItemPriority priority
System.Web.Caching.CacheItemRemovedCallback onRemoveCallback

Remove(String)

Declaration
void Remove(string key)
Parameters
Type Name Description
System.String key

Extension Methods