package com.zjty.autotest.mq;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class CacheManager {
    private static Map<String, Object> cacheMap = new HashMap<>();
    private static Map<String, Integer> statusMap = new HashMap<>();

    public static Object getCache(String key) {
        return cacheMap.get(key);
    }

    public static void putCache(String key, Object obj) {
        cacheMap.put(key, obj);
    }

    public static void removeCache(String key) {
        Object o = cacheMap.get(key);
        if (o != null) {
            cacheMap.remove(key);
        }

    }
}
