ASP.NET Data Caching? Memcache equivalent

爱⌒轻易说出口 提交于 2019-12-21 02:54:45

问题


Having used PHP on Linux a lot, I'm used to using memcache so that the database doesnt have to be accessed on every single request. What do people use on Windows the achieve this? From the asp.net mvc applications which I've seen, none of them use any sort of cache, they just hit the database on every request? Is this common, and if so, why is it acceptable?


回答1:


You can use memcached also. There are also other alternatives. You may also check Scott Gu's post about the new cache extensibility model introduced in ASP.NET 4.0.




回答2:


There is a Memcache equivalent for ASP.NET, it is AppFabric (code name Velocity). You can find out how to install and use it here, there are also detail instruction and whitepapers.




回答3:


Very few professionally built mvc apps would 'hit the database on every request', mvc is still built on top of the asp.net infrastructure which has a robust and proven cacheing engine.

FYI: Microsoft's memcache equivalent is called Velocity http://blogs.msdn.com/b/velocity/




回答4:


You can use Memcache on Windows as well. A very good version of Memcache is available from Northscale.



来源:https://stackoverflow.com/questions/3667433/asp-net-data-caching-memcache-equivalent

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