
com.tencent.devops.common.redis.split.RedisSplitProperties.kt Maven / Gradle / Ivy
package com.tencent.devops.common.redis.split
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConfigurationProperties("spring.redis.split")
@ConstructorBinding
data class RedisSplitProperties(
val mode: Mode = Mode.ONLY_MASTER,
val database: Int? = null,
val host: String? = null,
val password: String? = null,
val port: Int? = null
) {
enum class Mode {
ONLY_MASTER,
DOUBLE_WRITE_SLAVE
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy