示例#1
0
 public async Task SetAsync <T>(CacheOptions op, T result, CancellationToken token)
 {
     await cache.SetAsync(op.CacheKey.ToString(), serializer.Serialize(result), op.ToDistributedCacheEntryOptions(), token);
 }
示例#2
0
 public void Set <T>(CacheOptions op, T result)
 {
     cache.Set(op.CacheKey.ToString(), serializer.Serialize(result), op.ToDistributedCacheEntryOptions());
 }