com.pig4cloud.plugin.cache.properties.CaffeineConfigProp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multilevel-cache-spring-boot-starter Show documentation
Show all versions of multilevel-cache-spring-boot-starter Show documentation
support L1 caffeine and L2 redis cache
package com.pig4cloud.plugin.cache.properties;
import lombok.Data;
/**
* @author lengleng
* @date 2020/9/26
*
* Caffeine 相关配置
*/
@Data
public class CaffeineConfigProp {
/**
* 访问后过期时间,单位毫秒
*/
private long expireAfterAccess;
/**
* 写入后过期时间,单位毫秒
*/
private long expireAfterWrite;
/**
* 写入后刷新时间,单位毫秒
*/
private long refreshAfterWrite;
/**
* 初始化大小
*/
private int initialCapacity;
/**
* 最大缓存对象个数,超过此数量时之前放入的缓存将失效
*/
private long maximumSize;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy