Caching for .NET (not on websites)

I need a cache that responds to memory pressure similar to the one created in ASP.NET. I do not use a website, however I am creating a Windows service.

Any suggestions? (code, methods, products, I don't care while it's in memory)

+6
windows-services
source share
4 answers

If you are familiar with the ASP.NET cache ( System.Web.Caching ), you can still reference and use it even if you are not working in a web application.

+11
source share
+2
source share

You looked at the caching block of the Microsoft Enterprise library:

"Almost all applications should cache data. Although you are probably familiar with the caching features built into ASP.NET, the enterprise library caching unit provides in-memory storage, file-based storage, or a database for all of your other .NET."

Application Block Caching

+1
source share

memcached has clients for .Net:

+1
source share

All Articles