com.yuweix.kuafu.dao.PersistCache Maven / Gradle / Ivy
package com.yuweix.kuafu.dao;
/**
* @author yuwei
*/
public interface PersistCache {
/**
* @param key
* @param value
* @param timeout 过期时间(s)。
* @return
*/
boolean put(String key, T value, long timeout);
T get(String key);
void remove(String key);
}