Cachemanager
CacheManager is an open source caching framework for .NET written in C # and available through NuGet. It supports various cache providers and implements many advanced features.
Just start with ..
var cache = CacheFactory.Build<string>( p => p.WithSystemRuntimeCacheHandle());
Easy to use ...
cache.AddOrUpdate("key", "region", "value", _ => "update value"); cache.Expire("key", "region", TimeSpan.FromMinutes(1)); var val = cache.Get("key", "region"); var item = cache.GetCacheItem("key", "region"); cache.Put("key", "put value");
source share