I am looking for cache server for .NET. What can you suggest? As i know memcached has provider for .net. Is it good enough to use for .net in production?
-
2What is your use case? What are you caching? Are you looking for only free solutions, or can you consider commercial as well? – Ryan Emerle May 20 '11 at 13:28
-
We used memcached with ASP.NET in production. You can give it a try – Aykut Akıncı May 20 '11 at 13:47
-
I want to decrease amount of requests to database. I need free solution. – F0rc0sigan May 22 '11 at 08:45
-
Thanks for your replies. WHat can you say about Microsoft's own Caching Application Block in the Enterprise Library? Can it used for cache server? Or it is cache for one application or general cache for all applications? – F0rc0sigan May 22 '11 at 09:00
6 Answers
AppFabric is another popular solution from Microsoft.

- 1,023,142
- 271
- 3,287
- 2,928
-
Can it be runned on the same server where we have web server? What about perfomance? – F0rc0sigan May 22 '11 at 09:09
-
1@F0rc0sigan, yes it can be on the same machine, but a caching server usually takes lots of memory so if you want scalability it would be better to be distributed over caching servers. All will depend on the load you are expecting. As a starting you could install it on the same server and if you begin to encounter higher user loads distribute it over different machines. – Darin Dimitrov May 22 '11 at 09:11
If you're willing to run your cache server in Linux, you could use Redis, and use the BookSleeve library from .NET, this is what StackOverflow uses

- 6,006
- 7
- 38
- 48
Scale Out State Server is an excellent solution. It's not free, but for large-scale applications, it's one of the best options that we found.
NCache is another option, though I have no experience with it.
For enterprise scale (and budget) there's Oracle's Coherence. It works extremely well, though it's extremely pricey.
Here's another SO question with some information that may or may not be helpful:
Caching Solutions

- 1
- 1

- 15,461
- 8
- 52
- 69
Memached is plenty good for production, probably best using the enyim provider.
Couchbase provide a good web ui and easy memcached install on windows. Free if on a single server. It's great to be able to monitor your cache instance.
They have paid for solutions but and their own server.
AppFabric as mentioned is another obvious candidate but not a mature as memcached. AppFabric is an application server and can also provide distributed caching like membase

- 20,469
- 14
- 82
- 108
See the post Top caching libraries for .NET for several options, including both free and commercial. The choice will vary based on your actual need.
though there are numbers of third party caching solutions are available for .NET but if we narrow done the research based upon Google and word of mouth, it might be 1) Memcached 2) Appfabric 3) NCache
firs two are free/open source software so they have some limitations in it, while on the other hand NCache has a lot to offer as compared to others, but you have to buy it. but it has also a free version available called as NCache Express. below are two important links in this regard,

- 64
- 1