Class CacheOptions
MemoryDistributedCache options class
Inheritance
System.Object
CacheOptions
Namespace: PnP.Framework.Modernization.Cache
Assembly: PnP.Framework.dll
Syntax
public class CacheOptions : MemoryDistributedCacheOptions, ICacheOptions
Constructors
CacheOptions()
Declaration
public CacheOptions()
Properties
EntryOptions
Default cache entry configuration, will be used to save items to the cache
Declaration
public DistributedCacheEntryOptions EntryOptions { get; set; }
Property Value
DistributedCacheEntryOptions
|
Implements
KeyPrefix
Prefix value that will be prepended to the provided key value
Declaration
public string KeyPrefix { get; set; }
Property Value
System.String
|
Implements
Methods
GetKey(String)
Returns the key value to use by the caching system, in this case this will mean prepending the KeyPrefix
Declaration
public string GetKey(string key)
Parameters
System.String
key
Provided key |
Returns
System.String
Key to use by the caching system |