diff --git a/docs/cached.md b/docs/cached.md index 2290977d1..1a68f216d 100644 --- a/docs/cached.md +++ b/docs/cached.md @@ -38,11 +38,11 @@   以参数code+map.id为key将结果进行远程缓存60毫秒 ```java @Resource - private CacheManager cacheManager; + private CachedManager cachedManager; //实时修改远程缓存的key值 public void updateName(String code, Map map) { - cacheManager.remoteSetString(code, code + "_" + map.get("id"), Duration.ofMillis(60)); + cachedManager.remoteSetString(code, code + "_" + map.get("id"), Duration.ofMillis(60)); } @Cached(key = "#{code}_#{map.id}", remoteExpire = "60", timeUnit = TimeUnit.MILLISECONDS) @@ -59,5 +59,5 @@ remote: 远程CacheSource的资源名 broadcastable: 存在远程CacheSource时修改数据是否进行广播到其他集群服务中。默认: true --> - + ``` \ No newline at end of file diff --git a/src/main/java/META-INF/application-template.xml b/src/main/java/META-INF/application-template.xml index efc2bfb31..12dde4cda 100644 --- a/src/main/java/META-INF/application-template.xml +++ b/src/main/java/META-INF/application-template.xml @@ -49,7 +49,7 @@ serviceid1_name1 serviceid1_name2 serviceid2_name1 serviceid2_name2 remote: 远程CacheSource的资源名 broadcastable: 存在远程CacheSource时修改数据是否进行广播到其他集群服务中。默认: true --> - +