开发者

Turning off data caching asp.net

开发者 https://www.devze.com 2023-04-06 04:53 出处:网络
I make generous use of data caching in my asp.net application. However, my pathetic little laptop does not have the RAM to h开发者_运维问答andle this making development testing hard...

I make generous use of data caching in my asp.net application. However, my pathetic little laptop does not have the RAM to h开发者_运维问答andle this making development testing hard...

Does any one know how I can temporarily turn off data caching without going through my code and adding conditionals?

Thanks!

P.S. I just want to clarify that I am not talking about client side caching or output caching.


I would abstract the caching to an interface which you can implement in 2 different ways using dependency injection or using a factory approach. This way you can work with a generic cache and leave your code as is (not worrying about whether or not caching should be used).

0

精彩评论

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

关注公众号