common.framework.cache.TimeCache Maven / Gradle / Ivy
package common.framework.cache;
import cn.hutool.cache.impl.TimedCache;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* Description: 定时缓存.
*
* @author linan
* @date 2021-01-12
*/
@Component
public class TimeCache extends TimedCache{
public TimeCache(@Value("${spring.cache.timeout}")long timeout) {
super(timeout);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy