pull/MERGE
xuxueli 7 years ago
parent 73d646d8f6
commit f6114ad396

@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentMap;
*/ */
public class LocalCacheUtil { public class LocalCacheUtil {
private static ConcurrentMap<String, LocalCacheData> cacheRepository = new ConcurrentHashMap<>(); // 类型建议用抽象父类,兼容性更好; private static ConcurrentMap<String, LocalCacheData> cacheRepository = new ConcurrentHashMap<String, LocalCacheData>(); // 类型建议用抽象父类,兼容性更好;
private static class LocalCacheData{ private static class LocalCacheData{
private String key; private String key;
private Object val; private Object val;

Loading…
Cancel
Save