开发者

Turning off data caching asp.net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜