目的&效果
在springBoot中同时配置了RedisCache和ehCache,当使用@Cacheable注解时,默认为redisCache,通过指定注解中"cacheManager"的属性值,达到任意切换cache的效果。
https://www.it610.com/article/1279114620069494784.htm
SpringBoot配置多个cache,实现多个cacheManager灵活切换
最新推荐文章于 2023-06-23 09:00:00 发布
目的&效果
在springBoot中同时配置了RedisCache和ehCache,当使用@Cacheable注解时,默认为redisCache,通过指定注解中"cacheManager"的属性值,达到任意切换cache的效果。
https://www.it610.com/article/1279114620069494784.htm