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

site.sorghum.anno._common.cache.AnnoCache Maven / Gradle / Ivy

The newest version!
package site.sorghum.anno._common.cache;

import java.util.List;

/**
 * 缓存工具类
 *
 * @author Sorghum
 * @since 2023/08/02
 */
public abstract class AnnoCache {
    public void putCache(String key, Object value) {
        putCache(key, value, 0);
    }

    public abstract void putCache(String key, Object value, int seconds);

    public abstract  T getCacheItem(String key, Class clazz);

    public abstract  List getCacheList(String key, Class clazz);

    public abstract boolean containsCache(String key);

    public abstract void delKey(String key);

    public abstract void delKeyPattern(String key);

    public void removeKey(String key){
        delKey(key);
    };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy