Skip to content
This repository was archived by the owner on Nov 21, 2020. It is now read-only.

Commit 478c6d6

Browse files
committed
fix: spring cache store
1 parent 2377790 commit 478c6d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/code4everything/boot/cache/BootCacheManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public Cache getCache(String name) {
8787
cache = cacheMap.get(name);
8888
if (cache == null) {
8989
cache = cacheCreator.createCache(name);
90+
cacheMap.put(name, cache);
9091
cacheNames.add(name);
9192
}
9293
}
@@ -225,7 +226,7 @@ public Object getVal(String cacheName, String key) {
225226
}
226227

227228
/**
228-
* 获取缓存的对象
229+
* 获取缓存的对象,自动类型推断
229230
*
230231
* @param cacheName 缓存名
231232
* @param key 键

0 commit comments

Comments
 (0)