首页>代码>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(); } }
最近下载更多
lilong007 LV20
2023年12月30日
guigu2012 LV11
2023年12月13日
qq573914838 LV5
2023年9月10日
guanrenan LV10
2023年9月4日
xxk6225655 LV1
2023年6月22日
include LV8
2023年6月20日
mmmkkl LV2
2023年5月11日
泓鼎168 LV19
2023年4月28日
xiaoying0820 LV1
2023年3月22日
wanglinddad LV53
2023年2月16日
最近浏览更多
wjh007 LV4
2月29日
1134116035
2月28日
暂无贡献等级
heshao LV2
2月7日
hua318835876
1月29日
暂无贡献等级
lilong007 LV20
2023年12月30日
263648 LV7
2023年12月28日
guigu2012 LV11
2023年12月13日
hhsoft LV1
2023年10月22日
maoye520 LV1
2023年9月15日
qq573914838 LV5
2023年9月10日