CacheManager is an open source caching framework for .NET written in C# and is available via NuGet. It supports various cache providers and implements many advanced features. A simple but very efficient implementation. This handle is faster than any other in most scenarios and works cross-platform. Two implementations are available, based on System.Runtime.Caching and based on the new Microsoft.Extensions.Caching.Memory package. Redis can be used as an extremely fast and reliable out-of-process (or distributed) solution. Another great distributed solution is memcached, which can be used as a layer. The Redis implementation is based on the popular StackExchange.Redis package. Couchbase is primarily a document database but can also be used for simple caching. ASP.NET comes with its own in-process memory cache which can be used as one layer. Our Web NuGet package also comes with a custom OutputCacheProvider.
Features
- Caching objects or primitives is easy, keep writing your code in a type safe way and you don't have to care about casts or serialization issues
- The topology can be configured
- In distributed scenarios, updating a value must often be handled with care because of concurrency
- The serialization technology, used to serialize values in distributed scenarios, can be configured
- Logging can be added to the configuration to log some or all the operations
- Through configuration, you can set a default expiration mode and time for each layer