DistributedCachePlugin class
快取外掛,可將資料序列化到快取,並反序列化快取資料
方法
| after |
存取快取後序列化 |
| before |
在存取快取前先將快取反序列化 |
建構函式詳細資料
DistributedCachePlugin(ICacheClient, IPartitionManager)
new DistributedCachePlugin(client: ICacheClient, partitionManager: IPartitionManager)
參數
- client
- ICacheClient
- partitionManager
- IPartitionManager
方法詳細資料
afterCacheAccess(TokenCacheContext)
存取快取後序列化
function afterCacheAccess(cacheContext: TokenCacheContext): Promise<void>
參數
- cacheContext
- TokenCacheContext
TokenCacheContext
傳回
Promise<void>
beforeCacheAccess(TokenCacheContext)
在存取快取前先將快取反序列化
function beforeCacheAccess(cacheContext: TokenCacheContext): Promise<void>
參數
- cacheContext
- TokenCacheContext
TokenCacheContext
傳回
Promise<void>