
How to create a custom cache in Sitecore
When coding a Sitecore solution you sometimes need a cache to store some values. I’ve seen a lot of different cache implementations in Sitecore solutions that do not use the Sitecore API. Such an implementation could for example use a static or perhaps a singleton some even go further and use a custom database or a nosql document database such as RavenDB or Mongo. It is very rare that these implementations could not simply be replaced by using the built-in Sitecore caching API. ...