code_junkie

What are some database caching options for .Net?

Nov 13th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using Microsoft.Practices.EnterpriseLibrary.Caching;
  2. //Later
  3. CacheManager cache= CacheFactory.GetCacheManager();
  4. cache.Add("dataKey", "Yourdata")
  5.  
  6. using System.Web.Caching;
  7. using System.Web;
  8.  
  9. public sealed class CacheProvider
  10. {
  11. private CacheProvider(){};
  12.  
  13. public static GetInstance()
  14. {
  15. return HttpRuntime.Cache;
  16. }
  17. }
Add Comment
Please, Sign In to add comment