简体   繁体   中英

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 handle 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!

PS 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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