Class WeakReferenceCache
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Framework.Cache.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public class WeakReferenceCache : IObjectInstanceCache
Constructors
WeakReferenceCache()
Declaration
public WeakReferenceCache()
WeakReferenceCache(Func<DateTime>)
Declaration
public WeakReferenceCache(Func<DateTime> currentTime)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.DateTime> | currentTime |
Methods
Clear()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Removes all entries from the cache.
Declaration
public virtual void Clear()
Get(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the specified object.
Declaration
public virtual object Get(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
Returns
Type | Description |
---|---|
System.Object | The object associated with the key, if it exists. Otherwise returns null. |
Insert(String, Object, CacheEvictionPolicy)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Inserts the value into the cache with the specified key.
Declaration
public virtual void Insert(string key, object value, CacheEvictionPolicy evictionPolicy)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.Object | value | The value to cache. |
CacheEvictionPolicy | evictionPolicy | The cache eviction policy. |
Remarks
The evicitionPolicy can be null. In that case the item may stay in the cache for an undetermined time.
Remove(String)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Removes the specified object.
Declaration
public virtual void Remove(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |