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