I would like to use the System.Web.Caching.Cache object in my application, but this code throws a NullReferenceException.
Cache cache = new Cache(); cache["key"] = new object();
Any ideas?
Update
HttpRuntime.Cache solves my problem, but does anyone have a solution to use multiple cache instances in my application?
source share