Interface ICacheProvider
The interface of cache Provider
Namespace: PnP.Framework.Utilities.Cache
Assembly: PnP.Framework.dll
Syntax
public interface ICacheProvider
Methods
Get<T>(String)
Returns an item in cache keyed by the cacheKey parameter
Declaration
T Get<T>(string cacheKey)
Parameters
System. The key for the cached item |
Returns
T
The item retrieved from the cache |
Type Parameters
T
The expected type of cached item |
Put<T>(String, T)
Puts an entry in cache
Declaration
void Put<T>(string cacheKey, T item)
Parameters
System. The key for the cached item |
T
item
The item to put into cache |
Type Parameters
T
The type of item to cache |