com.datastax.insight.core.entity.Cache Maven / Gradle / Ivy
The newest version!
package com.datastax.insight.core.entity;
import org.apache.commons.collections.map.HashedMap;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.collections.map.HashedMap;
/*public class Cache {
private static Map cacheMap=new HashedMap();
public static void addCache(String key,Object value){
if(cacheMap.containsKey(key)){
cacheMap.remove(key);
}
cacheMap.put(key,value);
}
public static Object getCache(String key){
return cacheMap.get(key);
}
}*/
public class Cache {
private static InheritableThreadLocal