DistributedCachePlugin class
Cache plugin that serializes data to the cache and deserializes data from the cache
Methods
after |
Serializes the cache after accessing it |
before |
Deserializes the cache before accessing it |
Constructor Details
DistributedCachePlugin(ICacheClient, IPartitionManager)
new DistributedCachePlugin(client: ICacheClient, partitionManager: IPartitionManager)
Parameters
- client
- ICacheClient
- partitionManager
- IPartitionManager
Method Details
afterCacheAccess(TokenCacheContext)
Serializes the cache after accessing it
function afterCacheAccess(cacheContext: TokenCacheContext): Promise<void>
Parameters
- cacheContext
- TokenCacheContext
TokenCacheContext
Returns
Promise<void>
beforeCacheAccess(TokenCacheContext)
Deserializes the cache before accessing it
function beforeCacheAccess(cacheContext: TokenCacheContext): Promise<void>
Parameters
- cacheContext
- TokenCacheContext
TokenCacheContext
Returns
Promise<void>