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

org.nutz.web.cache.EasyCache Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.67
Show newest version
package org.nutz.web.cache;

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

public class EasyCache {

    private static Map> cm = new HashMap>();

    public static void reg(String name, CacheManager cManager) {
        cm.put(name, cManager);
    }

    public static void unreg(String name) {
        cm.remove(name);
    }

    public static CacheManager M(String name) {
        return cm.get(name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy