update 优化 缓存注解支持关闭本地缓存

This commit is contained in:
疯狂的狮子Li
2025-04-14 10:09:03 +08:00
parent 142fb33d81
commit 33e1d34ce5
3 changed files with 22 additions and 11 deletions

View File

@ -40,7 +40,7 @@ public class RedisCacheController {
* <p>
* cacheNames 命名规则 查看 {@link CacheNames} 注释 支持多参数
*/
@Cacheable(cacheNames = "demo:cache#60s#10m#20", key = "#key", condition = "#key != null")
@Cacheable(cacheNames = "demo:cache#60s#10m#20#1", key = "#key", condition = "#key != null")
@GetMapping("/test1")
public R<String> test1(String key, String value) {
return R.ok("操作成功", value);