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>