Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cache cache = System.Web.HttpRuntime.Cache;
- var config = new NameValueCollection();
- var cache = new MemoryCache("myMemCache", config);
- cache.Add(new CacheItem("a", "b"),
- new CacheItemPolicy
- {
- Priority = CacheItemPriority.NotRemovable,
- SlidingExpiration=TimeSpan.FromMinutes(30)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement