Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ object RedisClusterClient {
.topologyRefreshOptions(
ClusterTopologyRefreshOptions
.builder()
.enableAllAdaptiveRefreshTriggers()
// Use implicit duration converters from scala 2.13 once 2.12 support is removed
.adaptiveRefreshTriggersTimeout(Duration.ofMillis(timeout.toMillis))
.build()
Expand All @@ -124,7 +123,6 @@ object RedisClusterClient {
ClusterTopologyRefreshOptions
.builder()
.enablePeriodicRefresh(Duration.ofMillis(interval.toMillis))
.enableAllAdaptiveRefreshTriggers()
.adaptiveRefreshTriggersTimeout(Duration.ofMillis(timeout.toMillis))
.build()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import org.typelevel.keypool.KeyPool
import java.time.Instant
import java.util
import java.util.concurrent.TimeUnit
import scala.annotation.nowarn
import scala.concurrent.duration._

object Redis {
Expand Down Expand Up @@ -1493,8 +1494,9 @@ private[redis4cats] class BaseRedis[F[_]: FutureLift: MonadThrow: Log, K, V](
override def flushDb(mode: FlushMode): F[Unit] =
async.flatMap(_.flushdb(mode.asJava).futureLift.void)

@nowarn()
override def keys(key: K): F[List[K]] =
async.flatMap(_.keys(key).futureLift.map(_.asScala.toList))
async.flatMap(_.keysLegacy(key).futureLift.map(_.asScala.toList))

private def parseInfo(info: String): F[Map[String, String]] =
FutureLift[F].delay(
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object Dependencies {
val log4cats = "2.7.1"
val keyPool = "0.4.10"

val lettuce = "6.8.1.RELEASE"
val lettuce = "7.2.0.RELEASE"

val logback = "1.5.22"

Expand Down