首页>代码>spring+spring mvc+mybatis开发java web行业通用门户网站企业官网>/enterprise/src/main/java/com/enterprise/cache/SimpleCacheProvider.java
package com.enterprise.cache; import java.io.Serializable; import java.util.Map; import com.google.common.collect.Maps; public class SimpleCacheProvider implements CacheProvider{ public SimpleCacheProvider(){ } private static SimpleCacheProvider instance = new SimpleCacheProvider(); private static Map<String,Serializable> cacheContainer = Maps.newHashMap(); public static SimpleCacheProvider getInstance() { return instance; } @Override public void put(String key, Serializable cacheObject) { cacheContainer.put(key, cacheObject); } @Override public Serializable get(String key) { return cacheContainer.get(key); } @Override public void remove(String key) { cacheContainer.remove(key); } @Override public void clear() { cacheContainer.clear(); } }

F丶S丶H LV7
4月14日
alive13gyp LV2
3月19日
雨丝微凉 LV4
2024年10月16日
微信网友_7134912998903808 LV15
2024年9月2日
li739784276 LV6
2024年8月13日
hello_jugg LV7
2024年8月7日
TY0165 LV20
2024年6月24日
张德志 LV9
2024年6月17日
sccs1984 LV15
2024年4月24日
lilong007 LV23
2023年12月30日

F丶S丶H LV7
4月14日
alive13gyp LV2
3月19日
cassie555 LV3
1月21日
ma406805131 LV19
2024年12月18日
半夏bx LV14
2024年10月12日
微信网友_7134912998903808 LV15
2024年9月2日
li739784276 LV6
2024年8月13日
hello_jugg LV7
2024年8月7日
TY0165 LV20
2024年6月24日
张德志 LV9
2024年6月17日