嗨,为什么他们使用缓存?什么时候将在asp.net中使用缓存?你能给我实时情景吗 [英] Hi, Why they using caching? when will use caching in asp.net? Can you give me real time scenario

查看:76
本文介绍了嗨,为什么他们使用缓存?什么时候将在asp.net中使用缓存?你能给我实时情景吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



他们为什么使用缓存?什么时候将在asp.net中使用缓存?
您能给我实时场景吗?

Hi,

Why they using caching? when will use caching in asp.net?
Can you give me real time scenario

推荐答案

在每个基于站点或基于Web的应用程序中,有些数据不会经常更改,因此非常需要很多最终用户经常这样做.示例包括商品类别列表,电子商店的产品类别和产品项目,国家和州列表等等.提高站点性能的最常见解决方案是为该类型的数据实现缓存系统,以便一旦从数据存储中检索到数据,该数据将在内存中保留一定的时间间隔,并随后请求相同的数据将从内存缓存中检索它,从而避免往返数据库服务器并运行另一个查询.这将节省处理时间和网络流量,从而为用户提供更快的输出

看看:
在ASP.NET中进行缓存 [
In every site- or web-based application, there is some data that doesn’t change very often, which is requested very frequently by a lot of end users. Examples are a list of article categories, an e-store''s product categories and product items, a list of countries and states, and so on. The most common solution to increase the performance of your site is to implement a caching system for that type of data, so that once the data is retrieved from the data store, it will be kept in memory for some interval, and subsequent requests for the same data will retrieve it from the memory cache, avoiding a round trip to the database server and running another query. This will save processing time and network traffic and, thus, produce faster output to the user

Have a look at:
Caching in ASP.NET[^]


这篇关于嗨,为什么他们使用缓存?什么时候将在asp.net中使用缓存?你能给我实时情景吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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