问题
What is the best approach to implement distributed caching with .NET?
Edit: I was looking for a general caching schema for internal and external applications
回答1:
There is also NCache as another tool in addition to Velocity and memcached ports. As for strategies you will need to think about what @Unsliced is talking about because the strategy is different from the tool.
回答2:
We are huge fans of ScaleOut StateServer. In our tests, it was 4x faster than MemcacheDotNet and almost 2x faster than Enyim, with a lower memory footprint. It was well worth the money (the others are free).
Obviously, your mileage my vary, as every caching scenario is different, but I would definitely recommend kicking the tires on StateServer.
回答3:
You should take a look at memcached. It can run on as many nodes as you want/need. There are at least two .Net clients available: here and here.
回答4:
In the near future it will be Velocity. This is essentially a .Net implementation similar to Tangosol/Oracle's Coherence.
回答5:
maybe you should check Shared Cache (http://www.sharedcache.com || http://sharedcache.codeplex.com) - it fast, free and open source.
regards, roni
回答6:
What are you caching (and why)? How widely are you planning on distributing the cache? On a LAN, on a (private) WAN, over the whole interweb?
来源:https://stackoverflow.com/questions/38548/distributed-caching-with-net-2-0