Skip to content

Commit 9019b24

Browse files
committed
Add dependency on KotlinX Coroutines Reactor (dependency needed for Lettuce's coroutines implementation.)
1 parent 2d38124 commit 9019b24

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ kotlinx-coroutines-bom = { group = "org.jetbrains.kotlinx", name = "kotlinx-coro
2121
kotlinx-coroutines-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core" }
2222
kotlinx-coroutines-debug = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-debug" }
2323
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test" }
24+
kotlinx-coroutines-reactor = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-reactor" }
25+
2426

2527
# Test libraries
2628
kotest-runner-junit5 = { group = "io.kotest", name = "kotest-runner-junit5", version.ref = "kotest" }

kacheable-core/src/main/kotlin/com/github/dave08/kacheable/InMemoryKacheableStore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.github.dave08.kacheable
22

33
import kotlin.time.Duration
44

5-
class InMemoryKacheableStore(
5+
internal class InMemoryKacheableStore(
66
val map: MutableMap<String, String> = mutableMapOf()
77
) : KacheableStore {
88
override suspend fun delete(key: String) {
@@ -15,7 +15,7 @@ class InMemoryKacheableStore(
1515

1616
override suspend fun get(key: String): String? = map[key]
1717

18-
override suspend fun setExpire(key: String, duration: Duration) {
18+
override suspend fun setExpire(key: String, expiry: Duration) {
1919
// No-op
2020
}
2121
}

kacheable-lettuce/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies {
1414

1515
implementation(platform(libs.kotlinx.coroutines.bom))
1616
implementation(libs.kotlinx.coroutines.core)
17+
implementation(libs.kotlinx.coroutines.reactor)
1718

1819
testImplementation(libs.kotest.runner.junit5)
1920
testImplementation(libs.kotest.extensions.testContainers)

kacheable-lettuce/src/main/kotlin/com/github/dave08/kacheable/RedisKacheableStore.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package com.github.dave08.kacheable
33
import io.lettuce.core.ExperimentalLettuceCoroutinesApi
44
import io.lettuce.core.api.StatefulRedisConnection
55
import io.lettuce.core.api.coroutines
6-
import kotlinx.coroutines.future.await
76
import kotlin.time.Duration
87

98
@OptIn(ExperimentalLettuceCoroutinesApi::class)

0 commit comments

Comments
 (0)