A very experimental Redis client that is written in Kotlin
repositories {
maven("https://maven.dimensional.fun/releases")
}
dependencies {
implementation("mixtape.oss.kedis:kedis-core:{VERSION}")
}
<repositories>
<repository>
<id>dimensional-maven</id>
<name>Dimensional Maven</name>
<url>https://maven.dimensional.fun/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>mixtape.oss.kedis</groupId>
<artifactId>kedis-core</artifactId>
<version>{VERSION}</version>
</dependency>
</dependencies>
You can get a Redis client in two ways:
- Creating an instance of
RedisClient
yourself:
val client = RedisClient("redis://127.0.0.1")
- Using a
RedisPool
:
val pool = RedisPool(
uri = "redis://127.0.0.1",
initialSize = 5,
maxSize = 10,
maxWaitTime = 5000
)
pool.use { redis: RedisClient ->
// do stuff with the RedisClient
}
Mixtape Bot 2019-2022