com.skynet.infrastructure.InMemoryCacheService Maven / Gradle / Ivy
The newest version!
package com.skynet.infrastructure;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class InMemoryCacheService extends InfraBaseService implements CacheService {
Map cacheMap;
public InMemoryCacheService() {
}
public Object get(String key,Class> clazz) {
ensureCacheMap();
synchronized(cacheMap){//protect HashMap as it is not a thread safe class
return cacheMap.get(key);
}
}
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy