Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 756 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 756 Bytes

Kotlin thread-safe Redisson wrapper powered by integration with Stately

Usage

val connectionString = "rediss://root:12345@do-user-randombd.example.com:37081"
val redis = create(clientOf(connectionString))
val map = threadSafeMap<String, Int>("timecoins")
map.access { // isolated state
    it["apples"] = 475
}

Download with Gradle

Add the JitPack repository to your build.gradle.kts:

repositories {
    maven("https://jitpack.io")
}

Add the dependency:

dependencies {
    implementation("com.github.demidko:redis-utils:2021.06.30")
}