Class CacheHelper
Default ICacheHelper: resolves the cache named by CacheName, and falls back to the default cache.
[Export(typeof(ICacheHelper))]
[Shared]
public class CacheHelper : ICacheHelper
- Inheritance
-
CacheHelper
- Implements
- Inherited Members
Constructors
CacheHelper(ICacheContext, ILogger<CacheHelper>, IOptions<TokenCacheOptions>)
Initializes a new instance of the CacheHelper class.
public CacheHelper(ICacheContext cacheContext, ILogger<CacheHelper> logger, IOptions<TokenCacheOptions> options)
Parameters
cacheContextICacheContextThe context giving access to the registered caches.
loggerILogger<CacheHelper>The logger.
optionsIOptions<TokenCacheOptions>The token cache options.
Methods
GetCache()
Gets the cache used to store the tokens.
public ICache GetCache()
Returns
- ICache
The token cache.