From 16b42366863c8b491f360756f22e237749b42c02 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 22:10:00 +0000 Subject: [PATCH 1/2] Bump io.lettuce:lettuce-core from 6.5.1.RELEASE to 7.6.0.RELEASE Bumps [io.lettuce:lettuce-core](https://github.com/redis/lettuce) from 6.5.1.RELEASE to 7.6.0.RELEASE. - [Release notes](https://github.com/redis/lettuce/releases) - [Changelog](https://github.com/redis/lettuce/blob/main/RELEASE-NOTES.md) - [Commits](https://github.com/redis/lettuce/compare/6.5.1.RELEASE...7.6.0.RELEASE) --- updated-dependencies: - dependency-name: io.lettuce:lettuce-core dependency-version: 7.6.0.RELEASE dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c8296c0..1cad8af 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ dokka = "2.2.0" mavenPublish = "0.37.0" coroutines = "1.11.0" serialization = "1.11.0" -lettuce = "6.5.1.RELEASE" +lettuce = "7.6.0.RELEASE" postgresql = "42.7.13" hikari = "7.1.0" testcontainers = "2.0.5" From b47d0054a320807727b8779f60548be9ee325269 Mon Sep 17 00:00:00 2001 From: TonyTonyCoder11 Date: Fri, 31 Jul 2026 00:34:34 +0200 Subject: [PATCH 2/2] Stop RediSearch keywords being an enum, which Lettuce 7 no longer allows --- .../kotlin/dev/kmemo/store/redis/RedisStore.kt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/kmemo-store-redis/src/main/kotlin/dev/kmemo/store/redis/RedisStore.kt b/kmemo-store-redis/src/main/kotlin/dev/kmemo/store/redis/RedisStore.kt index 43c4543..567fcfc 100644 --- a/kmemo-store-redis/src/main/kotlin/dev/kmemo/store/redis/RedisStore.kt +++ b/kmemo-store-redis/src/main/kotlin/dev/kmemo/store/redis/RedisStore.kt @@ -287,13 +287,20 @@ public class RedisStore( } } - private enum class Ft : ProtocolKeyword { - CREATE, - SEARCH, - ; + /** + * A RediSearch command keyword. Deliberately not an enum: Lettuce 7 added `name()` to + * [ProtocolKeyword], and a Kotlin enum's implicit `name` property compiles to the same JVM + * signature, so the two clash and the class no longer compiles. + */ + private class Ft private constructor(private val keyword: String) : ProtocolKeyword { + private val encoded = ("FT.$keyword").toByteArray(US_ASCII) - private val encoded = ("FT." + name).toByteArray(US_ASCII) override fun getBytes(): ByteArray = encoded + + companion object { + val CREATE = Ft("CREATE") + val SEARCH = Ft("SEARCH") + } } private companion object {