Back to list
Views:   6.7K
Replies:  1

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 Poorte, Mar 02, 2015
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.