Skip to content

dimensional-fun/kedis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—ƒ๏ธ Kedis - A Kotlin Redis client.

A very experimental Redis client that is written in Kotlin

๐Ÿš€ Installation

๐Ÿ˜ Install w/ Gradle

repositories {
    maven("https://maven.dimensional.fun/releases")
}

dependencies {
    implementation("mixtape.oss.kedis:kedis-core:{VERSION}")
}

๐Ÿชถ Install w/ Maven

<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>

๐Ÿ’ป Usage

Getting a Redis client

You can get a Redis client in two ways:

  1. Creating an instance of RedisClient yourself:
val client = RedisClient("redis://127.0.0.1")
  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

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages