开发者

Does anyone store things in http application cache anymore or system.web.cache only?

开发者 https://www.devze.com 2023-01-01 22:08 出处:网络
Does anyone store things in http application cache anymore or system.web.cache only? Or are they the same开发者_运维知识库 thing under the covers?They are the same thing..from the class System.Web.Ca

Does anyone store things in http application cache anymore or system.web.cache only?

Or are they the same开发者_运维知识库 thing under the covers?


They are the same thing..from the class System.Web.Caching.Cache

I do use caching in my apps for data that is requested a lot.

My facade layers sets items in cache when they are 1st requested, so on following requests, it checks the cache 1st to see if it's available.

When i'm calling an update or delete statement, I make sure to clear that cache key, so it will be reloaded on th next "SELECT" request.

It saves a lot of trips to the DB.

0

精彩评论

暂无评论...
验证码 换一张
取 消