Esempio n. 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);
 }
Esempio n. 2
0
 public void Set <T>(CacheOptions op, T result)
 {
     cache.Set(op.CacheKey.ToString(), serializer.Serialize(result), op.ToDistributedCacheEntryOptions());
 }