Back to list
Views:   6.7K
Replies:  1
Archived

Caching using Singleton pattern

We are planning to implement caching using Singleton pattern. Will that be a best approach. Need advantages and disadvantages
Sudheer R, Feb 19, 2015
Reply 1
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
Jack Poorte, Mar 02, 2015


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0