
io.lettuce.core.api.StatefulRedisConnectionExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.api
import io.lettuce.core.ExperimentalLettuceCoroutinesApi
import io.lettuce.core.api.coroutines.RedisCoroutinesCommands
import io.lettuce.core.api.coroutines.RedisCoroutinesCommandsImpl
/**
* Extension for [StatefulRedisConnection] to create [RedisCoroutinesCommands]
*
* @author Mikhael Sokolov
* @author Mark Paluch
* @since 6.0
*/
@ExperimentalLettuceCoroutinesApi
fun StatefulRedisConnection.coroutines(): RedisCoroutinesCommands = RedisCoroutinesCommandsImpl(reactive())
© 2015 - 2025 Weber Informatics LLC | Privacy Policy