简体   繁体   English

ASP.NET中的数据缓存

[英]Data Caching in ASP.NET

I am a learner.I am learning Caching in ASP.NET.There are three types of caching in ASP.NET. 我是一名学习者。我正在学习ASP.NET中的缓存。在ASP.NET中有三种类型的缓存。

1.Page output caching. 1.Page输出缓存。

2.Partial Output caching. 2.Partial Output缓存。

3.Data Caching. 3.数据缓存。

In Page output caching, all the rendered content of the page saved in Cache and page every time re-execute. 在页面输出缓存中,每次重新执行时,页面的所有呈现内容都保存在缓存和页面中。

In Partial Output caching, we can apply caching rules on different parts of pages. 在部分输出缓存中,我们可以在页面的不同部分应用缓存规则。

But Data Caching, I didn't understand. 但数据缓存,我不明白。

Could anyone please explain me Data Caching? 有人可以解释一下数据缓存吗?

Thanx in advance. Thanx提前。

In simple terms data caching is storing data in memory for quick access. 简单来说,数据缓存是将数据存储在内存中以便快速访问。 Typically information that is costly to obtain (in terms of performance) is stored in the cache. 通常,获得成本高昂的信息(在性能方面)存储在高速缓存中。 One of the more common items stored in a cache in a Web application environment is commonly displayed database values; 存储在Web应用程序环境中的高速缓存中的一个更常见的项是通常显示的数据库值; by caching such information, rather than relying on repeated database calls, the demand on the Web server and database server's system resources are decreased and the Web application's scalability increased. 通过缓存此类信息,而不是依赖于重复的数据库调用,减少了对Web服务器和数据库服务器系统资源的需求,并增加了Web应用程序的可伸缩性。 As Microsoft eloquently puts it, "Caching is a technique widely used in computing to increase performance by keeping frequently accessed or expensive data in memory. In the context of a Web application, caching is used to retain pages or data across HTTP requests and reuse them without the expense of recreating them." 正如微软雄辩地指出的那样,“缓存是一种广泛用于计算的技术,通过将频繁访问或昂贵的数据保存在内存中来提高性能。在Web应用程序的上下文中,缓存用于跨HTTP请求保留页面或数据并重用它们没有重建它们的费用。“

Read more : .NET Data Caching 阅读更多: .NET数据缓存

它是关于缓存应用程序数据(使用Cache类) - 某些对象(值)的持久性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM