An open API service indexing awesome lists of open source software.

https://github.com/dimensional-fun/kedis

🗃ïļ kotlin multi-platform redis client.
https://github.com/dimensional-fun/kedis

kotlin kotlin-coroutines kotlin-multiplatform ktor redis redis-client

Last synced: about 2 months ago
JSON representation

🗃ïļ kotlin multi-platform redis client.

Awesome Lists containing this project

README

        

# 🗃ïļ Kedis - A Kotlin Redis client.

A very experimental Redis client that is written in [Kotlin](https://kotlinlang.org/)

- [**Discord Server**](https://mixtape.systems/development)

## 🚀 Installation

#### 🐘 Install w/ Gradle

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

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

#### ðŸŠķ Install w/ Maven

```xml


dimensional-maven
Dimensional Maven
https://maven.dimensional.fun/releases


mixtape.oss.kedis
kedis-core
{VERSION}

```

## ðŸ’ŧ Usage

#### Getting a Redis client

You can get a Redis client in two ways:
1. Creating an instance of `RedisClient` yourself:
```kt
val client = RedisClient("redis://127.0.0.1")
```
2. Using a `RedisPool`:
```kt
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