- System.Web.HttpRuntime.Cache
- Using the ASP.NET Cache outside of ASP.NET
- StackOverflow: HttpRuntime.Cache[] vs Application[]
string someObject = "FooBar"; //Cache the value HttpRuntime.Cache.Add("somekey", someObject, null, DateTime.UtcNow.AddMinutes(1.0), System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.Normal, null); someObject = null; //Access the cached value someObject = (string) HttpRuntime.Cache.Get( "somekey" );