
com.ajaxjs.util.cache.CacheManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ajaxjs-base Show documentation
Show all versions of ajaxjs-base Show documentation
A pure Java library that provides many tools, utils, and functions.
package com.ajaxjs.util.cache;
/**
* 缓存管理器接口,该接口提供具体的cache实现
*
*/
public interface CacheManager {
/**
* 根据 cache 的名称获取 cache。如果不存在,默认新建并返回
*
* @param name Cache 的名称
* @return Cache
*/
public Cache getCache(String name);
public Cache getCache(String name, Class clz);
/**
* 销毁cache
*/
public void destroy();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy