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

common.framework.cache.LruCache Maven / Gradle / Ivy

There is a newer version: 1.0.2-RELEASE
Show newest version
package common.framework.cache;

import cn.hutool.cache.impl.LRUCache;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 

Description: LRU (least recently used)最近最久未使用缓存

* * @author linan * @date 2021-01-12 */ @Component public class LruCache extends LRUCache { public LruCache(){ super(0); } public LruCache(@Value("${spring.cache.capacity}")int capacity) { super(capacity); } public LruCache(@Value("${spring.cache.capacity}")int capacity, @Value("${spring.cache.timeout}")long timeout) { super(capacity, timeout); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy