Class AbstractObjectCache<K, E>
Abstract object cache.
public abstract class AbstractObjectCache<K, E> : MemoryCache, IObjectCache<K, E>, IMemoryCache, IDisposable where K : notnull
Type Parameters
K
E
- Inheritance
-
AbstractObjectCache<K, E>
- Implements
-
IObjectCache<K, E>
- Inherited Members
- Extension Methods
Constructors
AbstractObjectCache(IOptions<Options>)
Ctor from opt
.
public AbstractObjectCache(IOptions<AbstractObjectCache<K, E>.Options> opt)
Parameters
opt
IOptions<AbstractObjectCache<K, E>.Options>
Properties
CfgOptions
Configured cache options in use.
public AbstractObjectCache<K, E>.Options CfgOptions { get; }
Property Value
- AbstractObjectCache<K, E>.Options
Methods
GetKey(E)
Get a key from tmplObj
.
public abstract K GetKey(E tmplObj)
Parameters
tmplObj
E
Returns
- K
Explicit Interface Implementations
IObjectCache<K, E>.get_Count()
int IObjectCache<K, E>.get_Count()