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?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- MVC-Routing,Why i can not ignore defaults,The matc
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
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/
You can use Memcache on Windows as well. A very good version of Memcache is available from Northscale.
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.
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.