All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magic.properties.cache.PropertiesCacheManager Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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