Home  /  Questions  /  Question



50   50
Feb 19, 2015


Caching using Singleton pattern

We are planning to implement caching using Singleton pattern. Will that be a best approach. Need advantages and disadvantages



508   99.9
Mar 02, 2015
Hi Sudheer: 

What is it exactly that you are trying to accomplish by using a Singleton pattern and caching data?
Alternatively you could simply create a static class (you could name it Cache) and then maintain a MemoryCache object inside,

Jack