com.magic.properties.cache.PropertiesCacheManager Maven / Gradle / Ivy
package com.magic.properties.cache;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 本地缓存管理
*/
public class PropertiesCacheManager {
/**
* 本地缓存数据
*/
private static Map propertiesMap = new ConcurrentHashMap<>();
public static Map getPropertiesMap() {
return propertiesMap;
}
public static void add(String key, String value){
propertiesMap.put(key, value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy