From a426384d4167f7c0df4ca72ceffed93b261a7ac9 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 3 Apr 2022 13:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20Spring=20Cache=20=E6=A1=86?= =?UTF-8?q?=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/infra/service/test/TestDemoServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/service/test/TestDemoServiceImpl.java b/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/service/test/TestDemoServiceImpl.java index 9be9ddf74..92153b022 100755 --- a/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/service/test/TestDemoServiceImpl.java +++ b/yudao-module-infra/yudao-module-infra-impl/src/main/java/cn/iocoder/yudao/module/infra/service/test/TestDemoServiceImpl.java @@ -33,7 +33,6 @@ public class TestDemoServiceImpl implements TestDemoService { private TestDemoMapper testDemoMapper; @Override - @CacheEvict(value = "test", key = "#createReqVO.id") public Long createTestDemo(TestDemoCreateReqVO createReqVO) { // 插入 TestDemoDO testDemo = TestDemoConvert.INSTANCE.convert(createReqVO); @@ -53,7 +52,7 @@ public class TestDemoServiceImpl implements TestDemoService { } @Override - @CacheEvict(value = "test", key = "'test:' + #id") + @CacheEvict(value = "test", key = "#id") public void deleteTestDemo(Long id) { // 校验存在 this.validateTestDemoExists(id);