This project has moved and is read-only. For the latest updates, please go here.
Project Description
A threadsafe generic cache in C#.

The class is simply a wrapper around a dictionary keyed by strings. All the access point have been protected by a read/write lock to improve performance in a multi-threaded environment.

I did not bother making it a library since it is only a class; the sources contain a sample project using the class. To use the cache , you really only need to download the class.

In most of the projects that I use this class, I derive the class as a singleton so I can access my cache from anywhere. Initially I had made the class a singleton however, I realized that it might not fit every person's needs so I left it out of the class implementation.
There is an example of how to derive it as a singleton in the Documentation page : Documentation.

Usage: see the Documentation or the Sample project Source Code.

Last edited Feb 26, 2012 at 5:12 PM by jmjulien, version 2