Caching for .NET (not in websites)

佐手、 提交于 2019-11-29 20:41:15

问题


I need a cache that responds to memory pressure like the one build-into ASP.NET. I'm not using a web site, however, I'm building a Windows Service.

Any suggestions? (code, techniques, products, I don't care as long as it's in-memory)


回答1:


If you're familiar with the ASP.NET Cache (System.Web.Caching), you can still reference and use it, even if you're not running within a web application.




回答2:


  • Caching Application Block from Microsoft Paterns & Practices.
  • Project Velocity from Microsoft.



回答3:


Have you looked at the Microsoft Enterprise library Caching Block:

"Nearly every application needs to cache data. While you're probably familiar wth the caching functionality built into ASP.NET, the Enterprise Library Caching Block provides in-memory, file-based, or database caching storage for all your other .NET applications. "

Caching App Block




回答4:


memcached has clients for .Net:

  • enyim.com Memcached Client
  • memcached Providers (for ASP.NEt cache).


来源:https://stackoverflow.com/questions/1280165/caching-for-net-not-in-websites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!