main.misk.redis.RedisConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of misk-redis Show documentation
Show all versions of misk-redis Show documentation
Open source application container in Kotlin
package misk.redis
import misk.config.Redact
import redis.clients.jedis.Protocol
import wisp.config.Config
class RedisConfig : java.util.LinkedHashMap, Config {
constructor() : super()
constructor(m: Map) : super(m)
}
data class RedisReplicationGroupConfig @JvmOverloads constructor(
val writer_endpoint: RedisNodeConfig,
val reader_endpoint: RedisNodeConfig,
@Redact
val redis_auth_password: String,
val timeout_ms: Int = Protocol.DEFAULT_TIMEOUT
)
data class RedisNodeConfig(
val hostname: String,
val port: Int
)