Class InMemoryCacheProvider
Simple in memory cache provider
Inheritance
System.Object
InMemoryCacheProvider
Namespace: PnP.Framework.Utilities.Cache
Assembly: PnP.Framework.dll
Syntax
public class InMemoryCacheProvider : object, ICacheProvider
Methods
Get<T>(String)
Gets an item from the cache
Declaration
public T Get<T>(string cacheKey)
Parameters
System. Key of the object to get from cache |
Returns
T
Default type value if not found, the object otherwise |
Type Parameters
T
Type of the object to get from cache |
Implements
Put<T>(String, T)
Stores an object in the cache. If the object exists it will be updated
Declaration
public void Put<T>(string cacheKey, T item)
Parameters
System. Key of the object to store in the cache |
T
item
The actual object to store in the cache |
Type Parameters
T
Type of the object to store in the cache |