Beispiel #1
0
        public override void AddOrReplace(TKey key, TValue value)
        {
            var cacheEntry = CacheEntry.From(value, DateTimeOffset.UtcNow);

            Cache.AddOrUpdate(key,
                              _ => cacheEntry,
                              (_1, _2) => cacheEntry);
        }