com.pig4cloud.plugin.cache.properties.RedisConfigProp 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;
import java.util.HashMap;
import java.util.Map;
/**
* @author lengleng
* @date 2020/9/26
*
* redis 相关配置
*/
@Data
public class RedisConfigProp {
/**
* 全局过期时间,单位毫秒,默认不过期
*/
private long defaultExpiration = 0;
/**
* 每个cacheName的过期时间,单位毫秒,优先级比defaultExpiration高
*/
private Map expires = new HashMap<>();
/**
* 缓存更新时通知其他节点的topic名称
*/
private String topic = "cache:redis:caffeine:topic";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy