spring 內存管理(1) 基礎代碼

public interface CacheManager {redis

    String EHCACHE = "ehcacheManager";get

    String REDIS = "redisCacheManager";im

    String DEFAULT = CacheManager.REDIS;di

    void put(String key, Object value, int timeToLive);co

    boolean add(String key, Object value, int timeToLive);time

    Object get(String key);let

    Object getAndTouch(String key, int timeToLive);interface

    void delete(String key);void

    boolean containsKey(String key);delete

}  

相關文章
相關標籤/搜索