问题
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