I am caching my data in redis using spring caching abstraction. Is there any way to disable caching through application.properties file. I tried using spring.cache.type=none
, but it didn't worked.
I know if I remove @EnableCaching
, it will disable caching, but is there any other way to do this without changing the code
Try to put following variable in your properties file:
rediscache=disable
Hope it will help.
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.