You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alastair Crabtree edited this page Feb 25, 2019
·
3 revisions
NOTE: This is for LazyCache 0.7 or lower. For LazyCache v2+ users consider switching to IDistributedCache
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 ObjectCachevarcustomObjectCache=newBespokeCache();// Pass it into the lazy cache - varcache=newCachingService(customObjectCache);// Now when we use cache it will use customObjectCache
There are several open source implementations of object cache: