redis

Module aio

source
Available on crate feature aio only.
Expand description

Adds async IO support to redis.

Modules§

  • async_stdasync-std-comp
    Enables the async_std compatibility
  • tokiotokio-comp
    Enables the tokio compatibility

Structs§

  • ConnectionDeprecated
    Represents a stateful redis TCP connection.
  • ConnectionManagerconnection-manager
    A ConnectionManager is a proxy that wraps a multiplexed connection and automatically reconnects to the server when necessary.
  • ConnectionManagerConfigconnection-manager
    ConnectionManager is the configuration for reconnect mechanism and request timing
  • Represents a Monitor connection.
  • A connection object which can be cloned, allowing requests to be be sent concurrently on the same underlying connection (tcp/unix socket). This connection object is cancellation-safe, and the user can drop request future without polling them to completion, but this doesn’t mean that the actual request sent to the server is cancelled. A side-effect of this is that the underlying connection won’t be closed until all sent requests have been answered, which means that in case of blocking commands, the underlying connection resource might not be released, even when all clones of the multiplexed connection have been dropped (see https://github.com/redis-rs/redis-rs/issues/1236). This isn’t an issue in a connection that was created in a canonical way, which ensures that _task_handle is set, so that once all of the connection’s clones are dropped, the task will also be dropped. If the user creates the connection in another way and _task_handle isn’t set, they should manually spawn the returned driver function, keep the spawned task’s handle and abort the task whenever they want, at the risk of effectively closing the clones of the multiplexed connection.
  • A connection dedicated to pubsub messages.
  • The sink part of a split async Pubsub.
  • The stream part of a split async Pubsub.

Traits§