ASP.NET数据缓存?内存缓存相当于 [英] ASP.NET Data Caching? Memcache equivalent

查看:220
本文介绍了ASP.NET数据缓存?内存缓存相当于的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有在Linux上使用PHP了很多,我已经习惯了使用内存缓存,这样可是没有数据库上的每一个请求进行访问。什么人在Windows上使用了实现这一目标?从我所看到的,他们没有使用任何类型的高速缓存的asp.net mvc的应用程序,他们只是打在每次请求的数据库?这是常见的,如果是这样,为什么会接受吗?

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?

推荐答案

您可以使用的 memcached的也。也有其他替代的。你也可以检查斯科特谷的<一个href=\"http://weblogs.asp.net/scottgu/archive/2010/01/27/extensible-output-caching-with-asp-net-4-vs-2010-and-net-4-0-series.aspx\"相对=nofollow>帖子有关在ASP.NET 4.0,引入了新的缓存扩展模型

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.

这篇关于ASP.NET数据缓存?内存缓存相当于的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆