Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Practices.EnterpriseLibrary.Caching;
- //Later
- CacheManager cache= CacheFactory.GetCacheManager();
- cache.Add("dataKey", "Yourdata")
- using System.Web.Caching;
- using System.Web;
- public sealed class CacheProvider
- {
- private CacheProvider(){};
- public static GetInstance()
- {
- return HttpRuntime.Cache;
- }
- }
Add Comment
Please, Sign In to add comment