com.github.xiaolyuh.cache.properties.LayeringCacheRedisProperties Maven / Gradle / Ivy
package com.github.xiaolyuh.cache.properties;
import com.github.xiaolyuh.util.StringUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "layering-cache.redis")
public class LayeringCacheRedisProperties {
Integer database = 0;
/**
* 不为空表示集群版,示例
* localhost:7379,localhost2:7379
*/
String cluster = "";
String host = "localhost";
Integer port = 6379;
String password = null;
public String getPassword() {
return StringUtils.isBlank(password) ? null : password;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy