Saturday, October 15, 2016

This think this is how you add something to the cache in C# which will die in 15 minutes.

_cache.Add(ViewBag.Cache, buyers, DateTime.Now.AddMinutes(15));

 
 

Herein _cache is an instance of ObjectCache and buyers a List of T.

No comments:

Post a Comment