K - Key type.V - Value type.public interface StatefulRedisConnection<K,V> extends StatefulConnection<K,V>
StatefulRedisConnection.
A ConnectionWatchdog monitors each connection and reconnects automatically until StatefulConnection.close() is called. All
pending commands will be (re)sent after successful reconnection.| Modifier and Type | Method and Description |
|---|---|
RedisAsyncCommands<K,V> |
async()
Returns the
RedisAsyncCommands API for the current connection. |
boolean |
isMulti() |
RedisReactiveCommands<K,V> |
reactive()
Returns the
RedisReactiveCommands API for the current connection. |
RedisCommands<K,V> |
sync()
Returns the
RedisCommands API for the current connection. |
close, closeAsync, dispatch, dispatch, flushCommands, getOptions, getResources, getTimeout, isOpen, reset, setAutoFlushCommands, setTimeout, setTimeoutboolean isMulti()
RedisCommands<K,V> sync()
RedisCommands API for the current connection. Does not create a new connection.RedisAsyncCommands<K,V> async()
RedisAsyncCommands API for the current connection. Does not create a new connection.RedisReactiveCommands<K,V> reactive()
RedisReactiveCommands API for the current connection. Does not create a new connection.Copyright © 2020 lettuce.io. All rights reserved.