Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
2.0 Extending LazyCache with Redis, Cassandra etc
To extend the cache or use a cache library other than MemoryCache such as an Sql Server cache (say) just implement ObjectCache and pass it into the constructor.
// construct our implementation of ObjectCache var customObjectCache = new BespokeCache(); // Pass it into the lazy cache - var cache = new CachingService(customObjectCache); // Now when we use cache it will use customObjectCache
There are several open source implementations of object cache: