cn.kduck.core.cache.CacheExpiredHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kduck-core Show documentation
Show all versions of kduck-core Show documentation
The core of the K-Duck development framework encompasses all the featured components of the framework.
package cn.kduck.core.cache;
import org.springframework.cache.Cache;
import java.util.Date;
/**
* 缓存过期处理器
*/
public interface CacheExpiredHandler {
void doExpired(Cache cache,Object key, Object value, Date expired);
void clearExpired(Cache cache);
boolean isExpired(Cache cache,Object key);
}