- merged
Client
andMultiplexedClient
- more flexibility to users
- more simplicity in rustis architecture
- exposed
get_client_state
onClient
- added
Client::close
to graciously close a client instance - Added Client::on_reconnect
- allow callers to receive notifications when the clients reconnects to the Redis server
- Added
Config
options:- connect_timeout - The time to attempt a connection before timing out (default 10,000ms).
- command_timeout - If a command does not return a reply within a set number of milliseconds,
a timeout error will be thrown. If set to 0, no timeout is apply (default 0). - auto_resubscribe - When the client reconnects, channels subscribed in the previous connection will be
resubscribed automatically ifauto_resubscribe
istrue
(defaulttrue
). - auto_remonitor - When the client reconnects, if in
monitor
mode, the
monitor
command will be resent automatically - connection_name - Set the name of the connection to make
it easier to identity the connection in client list. - no_delay - Enable/disable the use of Nagle's algorithm (default
true
) - keep_alive - Enable/disable keep-alive functionality (default
None
)
- removed struct
BulkString
- removed
u8
impl forIntoArgs
&FromValue
- added
Vec<u8>
,&[u8]
,&[u8; N]
,[u8; N]
impl forIntoArgs
- added
Vec<u8>
impl forFromValue
- removed