ClusterConnection in redis::cluster_async - Rust
Description: This represents an async Redis Cluster connection.

Skip to main content

## ClusterConnection

# Struct ClusterConnection

Source

    pub struct ClusterConnection<C = MultiplexedConnection> { /* private fields */ }

Available on crate features `cluster` and `aio` only.
Expand description

This represents an async Redis Cluster connection.

It stores the underlying connections maintained for each node in the cluster, as well as common parameters for connecting to nodes and executing commands.

## Implementations§

Source§

### impl<C> ClusterConnection<C>
where C: ConnectionLike + Connect + Clone + Send + Sync + Unpin + 'static,

Source

#### pub async fn route_command( &mut self, cmd: Cmd, routing: RoutingInfo, ) -> RedisResult<Value>

Available on crate feature `cluster-async` only.

Send a command to the given `routing`, and aggregate the response according to `response_policy`.

Source

#### pub async fn route_pipeline( &mut self, pipeline: Pipeline, offset: usize, count: usize, route: SingleNodeRoutingInfo, ) -> RedisResult<Vec<Value>>

Available on crate feature `cluster-async` only.

Send commands in `pipeline` to the given `route`. If `route` is None, it will be sent to a random node.

Source

#### pub async fn subscribe( &mut self, channel_name: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Subscribes to a new channel(s).

Updates from the sender will be sent on the push sender that was passed to the manager. If the manager was configured without a push sender, the connection won’t be able to pass messages back to the user.

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise. It should be noted that the subscription will be automatically resubscribed after disconnections, so the user might receive additional pushes with crate::PushKind::Subscribe, later after the subscription completed.

    let nodes = vec!["redis://127.0.0.1/protocol=3"];
    let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel();
    let client = redis::cluster::ClusterClientBuilder::new(nodes)
      .use_protocol(redis::ProtocolVersion::RESP3)
      .push_sender(tx).build()?;
    let mut con = client.get_async_connection().await?;
    con.subscribe(&["channel_1", "channel_2"]).await?;
    con.unsubscribe(&["channel_1", "channel_2"]).await?;

Source

#### pub async fn unsubscribe( &mut self, channel_name: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Unsubscribes from channel(s).

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise.

Source

#### pub async fn psubscribe( &mut self, channel_pattern: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Subscribes to new channel(s) with pattern(s).

Updates from the sender will be sent on the push sender that was passed to the manager. If the manager was configured without a push sender, the manager won’t be able to pass messages back to the user.

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise. It should be noted that the subscription will be automatically resubscribed after disconnections, so the user might receive additional pushes with crate::PushKind::PSubscribe, later after the subscription completed.

    let nodes = vec!["redis://127.0.0.1/protocol=3"];
    let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel();
    let client = redis::cluster::ClusterClientBuilder::new(nodes)
      .use_protocol(redis::ProtocolVersion::RESP3)
      .push_sender(tx).build()?;
    let mut connection = client.get_async_connection().await?;
    connection.psubscribe("channel*_1").await?;
    connection.psubscribe(&["channel*_2", "channel*_3"]).await?;

Source

#### pub async fn punsubscribe( &mut self, channel_pattern: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Unsubscribes from channel pattern(s).

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise.

Source

#### pub async fn ssubscribe( &mut self, channel_name: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Subscribes to a new sharded channel(s).

Updates from the sender will be sent on the push sender that was passed to the manager. If the manager was configured without a push sender, the manager won’t be able to pass messages back to the user.

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise. It should be noted that the subscription will be automatically resubscribed after disconnections, so the user might receive additional pushes with crate::PushKind::SSubscribe, later after the subscription completed.

    let nodes = vec!["redis://127.0.0.1/protocol=3"];
    let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel();
    let client = redis::cluster::ClusterClientBuilder::new(nodes)
      .use_protocol(redis::ProtocolVersion::RESP3)
      .push_sender(tx).build()?;
    let mut connection = client.get_async_connection().await?;
    connection.ssubscribe(&["channel_1", "channel_2"]).await?;
    connection.sunsubscribe(&["channel_1", "channel_2"]).await?;

Source

#### pub async fn sunsubscribe( &mut self, channel_name: impl ToRedisArgs, ) -> RedisResult<()>

Available on crate feature `cluster-async` only.

Unsubscribes from sharded channel(s).

This method is only available when the connection is using RESP3 protocol, and will return an error otherwise.

Source

#### pub fn get_cache_statistics(&self) -> Option<CacheStatistics>

Available on crate feature `cache-aio` only.

Gets `CacheStatistics` for cluster connection if caching is enabled.

## Trait Implementations§

Source§

### impl<C: Clone> Clone for ClusterConnection<C>

Available on crate feature `cluster-async` only.
Source§

#### fn clone(&self) -> ClusterConnection<C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

#### fn clone_from(&mut self, source: &Self)

Performs copy-assignment from `source`. Read more
Source§

### impl<C> ConnectionLike for ClusterConnection<C>
where C: ConnectionLike + Send + Clone + Unpin + Sync + Connect + 'static,

Available on crate feature `cluster-async` only.
Source§

#### fn req_packed_command<'a>(&'a mut self, cmd: &'a Cmd) -> RedisFuture<'a, Value>

Available on crate feature `aio` only.
Sends an already encoded (packed) command into the TCP socket and reads the single response from it.
Source§

#### fn get_db(&self) -> i64

Available on crate feature `aio` only.
Returns the database this connection is bound to. Note that this information might be unreliable because it’s initially cached and also might be incorrect if the connection like object is not actually connected.

## Auto Trait Implementations§

§

### impl<C> Freeze for ClusterConnection<C>

§

### impl<C> RefUnwindSafe for ClusterConnection<C>

§

### impl<C> Send for ClusterConnection<C>
where C: Send,

§

### impl<C> Sync for ClusterConnection<C>
where C: Send,

§

### impl<C> Unpin for ClusterConnection<C>

§

### impl<C> UnwindSafe for ClusterConnection<C>

## Blanket Implementations§

Source§

### impl<T> Any for T
where T: 'static + ?Sized,

Source§

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more
Source§

### impl<T> AsyncCommands for T
where T: ConnectionLike + Send + Sync,

Source§

#### fn get<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the value of a key. If key is a vec this becomes an `MGET` (if using `TypedCommands`, you should specifically use `mget` to get the correct return type. Redis Docs
Source§

#### fn mget<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get values of keys Redis Docs
Source§

#### fn keys<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets all keys matching pattern Redis Docs
Source§

#### fn set<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the string value of a key. Redis Docs
Source§

#### fn set_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, options: SetOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the string value of a key with options. Redis Docs
Source§

#### fn mset<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, items: &'a [(K, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets multiple keys to their values. Redis Docs
Source§

#### fn set_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, seconds: u64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the value and expiration of a key. Redis Docs
Source§

#### fn pset_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, milliseconds: u64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the value and expiration in milliseconds of a key. Redis Docs
Source§

#### fn set_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the value of a key, only if the key does not exist Redis Docs
Source§

#### fn mset_nx<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, items: &'a [(K, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

#### fn mset_ex<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, items: &'a [(K, V)], options: MSetOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets the given keys to their respective values. This command is an extension of the MSETNX that adds expiration and XX options. Redis Docs
Source§

#### fn getset<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the string value of a key and return its old value. Redis Docs
Source§

#### fn getrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, from: isize, to: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get a range of bytes/substring from the value of a key. Negative values provide an offset from the end of the value. Redis returns an empty string if the key doesn’t exist, not Nil Redis Docs
Source§

#### fn setrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, offset: isize, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Overwrite the part of the value stored in key at the specified offset. Redis Docs
Source§

#### fn del<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

#### fn del_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value_comparison: ValueComparison, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Conditionally removes the specified key. A key is ignored if it does not exist. IFEQ `match-value` - Delete the key only if its value is equal to `match-value` IFNE `match-value` - Delete the key only if its value is not equal to `match-value` IFDEQ `match-digest` - Delete the key only if the digest of its value is equal to `match-digest` IFDNE `match-digest` - Delete the key only if the digest of its value is not equal to `match-digest` Redis Docs
Source§

#### fn digest<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the hex signature of the value stored in the specified key. For the digest, Redis will use XXH3 Redis Docs
Source§

#### fn exists<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine if a key exists. Redis Docs
Source§

#### fn key_type<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine the type of key. Redis Docs
Source§

#### fn expire<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, seconds: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

#### fn expire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ts: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

#### fn pexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ms: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

#### fn pexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ts: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the expiration for a key as a UNIX timestamp in milliseconds. Returns whether expiration was set. Redis Docs
Source§

#### fn expire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the absolute Unix expiration timestamp in seconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn pexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the absolute Unix expiration timestamp in milliseconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn persist<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

#### fn ttl<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the time to live for a key in seconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn pttl<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the time to live for a key in milliseconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn get_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, expire_at: Expiry, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the value of a key and set expiration Redis Docs
Source§

#### fn get_del<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the value of a key and delete it Redis Docs
Source§

#### fn copy<'a, KSrc: ToSingleRedisArg + Send + Sync + 'a, KDst: ToSingleRedisArg + Send + Sync + 'a, Db: ToString + Send + Sync + 'a, RV>( &'a mut self, source: KSrc, destination: KDst, options: CopyOptions<Db>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

#### fn rename<'a, K: ToSingleRedisArg + Send + Sync + 'a, N: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, new_key: N, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Rename a key. Errors if key does not exist. Redis Docs
Source§

#### fn rename_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, N: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, new_key: N, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Rename a key, only if the new key does not exist. Errors if key does not exist. Returns whether the key was renamed, or false if the new key already exists. Redis Docs
Source§

#### fn unlink<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Unlink one or more keys. This is a non-blocking version of `DEL`. Returns number of keys unlinked. Redis Docs
Source§

#### fn append<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Append a value to a key. Returns length of string after operation. Redis Docs
Source§

#### fn incr<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, delta: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Increment the numeric value of a key by the given amount. This issues a `INCRBY` or `INCRBYFLOAT` depending on the type. If the key does not exist, it is set to 0 before performing the operation.
Source§

#### fn decr<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, delta: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Decrement the numeric value of a key by the given amount. If the key does not exist, it is set to 0 before performing the operation. Redis Docs
Source§

#### fn setbit<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, offset: usize, value: bool, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets or clears the bit at offset in the string value stored at key. Returns the original bit value stored at offset. Redis Docs
Source§

#### fn getbit<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, offset: usize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

#### fn bitcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

#### fn bitcount_range<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: usize, end: usize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

#### fn bit_and<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Perform a bitwise AND between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_or<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Perform a bitwise OR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_xor<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Perform a bitwise XOR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_not<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckey: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Perform a bitwise NOT of the key (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_diff<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
DIFF(X, Y1, Y2, …)
Perform a set difference to extract the members of X that are not members of any of Y1, Y2,….
Logical representation: X ∧ ¬(Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_diff1<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
DIFF1(X, Y1, Y2, …) (Relative complement difference)
Perform a relative complement set difference to extract the members of one or more of Y1, Y2,… that are not members of X.
Logical representation: ¬X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_and_or<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
ANDOR(X, Y1, Y2, …)
Perform an “intersection of union(s)” operation to extract the members of X that are also members of one or more of Y1, Y2,….
Logical representation: X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_one<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
ONE(X, Y1, Y2, …)
Perform an “exclusive membership” operation to extract the members of exactly one of X, Y1, Y2, ….
Logical representation: (X ∨ Y1 ∨ Y2 ∨ …) ∧ ¬((X ∧ Y1) ∨ (X ∧ Y2) ∨ (Y1 ∧ Y2) ∨ (Y1 ∧ Y3) ∨ …)
Redis Docs
Source§

#### fn strlen<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

#### fn hget<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets a single (or multiple) fields from a hash.
Source§

#### fn hmget<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets multiple fields from a hash. Redis Docs
Source§

#### fn hget_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, expire_at: Expiry, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

#### fn hdel<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

#### fn hget_del<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get and delete the value of one or more fields of a given hash key Redis Docs
Source§

#### fn hset<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

#### fn hset_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, hash_field_expiration_options: &'a HashFieldExpirationOptions, fields_values: &'a [(F, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

#### fn hset_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets a single field in a hash if it does not exist. Returns whether the field was added. Redis Docs
Source§

#### fn hset_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, items: &'a [(F, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets multiple fields in a hash. Redis Docs
Source§

#### fn hincr<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, delta: D, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Increments a value. Returns the new value of the field after incrementation.
Source§

#### fn hexists<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Checks if a field in a hash exists. Redis Docs
Source§

#### fn httl<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get one or more fields’ TTL in seconds. Redis Docs
Source§

#### fn hpttl<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get one or more fields’ TTL in milliseconds. Redis Docs
Source§

#### fn hexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, seconds: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set one or more fields’ time to live in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the expiration for one or more fields as a UNIX timestamp in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

#### fn hpersist<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs
Source§

#### fn hpexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, milliseconds: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set one or more fields’ time to live in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hpexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Set the expiration for one or more fields as a UNIX timestamp in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hpexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

#### fn hkeys<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets all the keys in a hash. Redis Docs
Source§

#### fn hvals<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets all the values in a hash. Redis Docs
Source§

#### fn hgetall<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets all the fields and values in a hash. Redis Docs
Source§

#### fn hlen<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

#### fn blmove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pop an element from a list, push it to another list and return it; or block until one is available Redis Docs
Source§

#### fn blmpop<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, timeout: f64, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pops `count` elements from the first non-empty list key from the list of provided key names; or blocks until one is available. Redis Docs
Source§

#### fn blpop<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove and get the first element in a list, or block until one is available. Redis Docs
Source§

#### fn brpop<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

#### fn brpoplpush<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, srckey: S, dstkey: D, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pop a value from a list, push it to another list and return it; or block until one is available. Redis Docs
Source§

#### fn lindex<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, index: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get an element from a list by its index. Redis Docs
Source§

#### fn linsert_before<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, pivot: P, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Insert an element before another element in a list. Redis Docs
Source§

#### fn linsert_after<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, pivot: P, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Insert an element after another element in a list. Redis Docs
Source§

#### fn llen<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the length of the list stored at key. Redis Docs
Source§

#### fn lmove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pop an element a list, push it to another list and return it Redis Docs
Source§

#### fn lmpop<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pops `count` elements from the first non-empty list key from the list of provided key names. Redis Docs
Source§

#### fn lpop<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns the up to `count` first elements of the list stored at key. Read more
Source§

#### fn lpos<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, options: LposOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

#### fn lpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

#### fn lpush_exists<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Inserts a value at the head of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

#### fn lrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the specified elements of the list stored at key. Redis Docs
Source§

#### fn lrem<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: isize, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

#### fn ltrim<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

#### fn lset<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, index: isize, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sets the list element at index to value Redis Docs
Source§

#### fn ping<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sends a ping to the server Redis Docs
Source§

#### fn ping_message<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, message: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Sends a ping with a message to the server Redis Docs
Source§

#### fn rpop<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns the up to `count` last elements of the list stored at key Read more
Source§

#### fn rpoplpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, dstkey: D, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Pop a value from a list, push it to another list and return it. Redis Docs
Source§

#### fn rpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

#### fn rpush_exists<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Inserts value at the tail of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

#### fn sadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add one or more members to a set. Redis Docs
Source§

#### fn scard<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the number of members in a set. Redis Docs
Source§

#### fn sdiff<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Subtract multiple sets. Redis Docs
Source§

#### fn sdiffstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Subtract multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn sinter<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Intersect multiple sets. Redis Docs
Source§

#### fn sinterstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn sismember<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine if a given value is a member of a set. Redis Docs
Source§

#### fn smismember<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine if given values are members of a set. Redis Docs
Source§

#### fn smembers<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get all the members in a set. Redis Docs
Source§

#### fn smove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, srckey: S, dstkey: D, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Move a member from one set to another. Redis Docs
Source§

#### fn spop<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove and return a random member from a set. Redis Docs
Source§

#### fn srandmember<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get one random member from a set. Redis Docs
Source§

#### fn srandmember_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get multiple random members from a set. Redis Docs
Source§

#### fn srem<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove one or more members from a set. Redis Docs
Source§

#### fn sunion<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add multiple sets. Redis Docs
Source§

#### fn sunionstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn zadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, score: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, items: &'a [(S, M)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, score: S, options: &'a SortedSetAddOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_multiple_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, items: &'a [(S, M)], options: &'a SortedSetAddOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zcard<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the number of members in a sorted set. Redis Docs
Source§

#### fn zcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Count the members in a sorted set with scores within the given values. Redis Docs
Source§

#### fn zincr<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, delta: D, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Increments the member in a sorted set at key by delta. If the member does not exist, it is added with delta as its score. Redis Docs
Source§

#### fn zinterstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

#### fn zinterstore_min<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

#### fn zinterstore_max<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

#### fn zinterstore_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zinterstore`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zinterstore_min_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zinterstore_min`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zinterstore_max_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zinterstore_max`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zlexcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Count the number of members in a sorted set between a given lexicographical range. Redis Docs
Source§

#### fn bzpopmax<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns the member with the highest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zpopmax<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores in a sorted set Redis Docs
Source§

#### fn bzpopmin<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns the member with the lowest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zpopmin<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores in a sorted set Redis Docs
Source§

#### fn bzmpop_max<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zmpop_max<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

#### fn bzmpop_min<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zmpop_min<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

#### fn zrandmember<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: Option<isize>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return up to count random members in a sorted set (or 1 if `count == None`) Redis Docs
Source§

#### fn zrandmember_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return up to count random members in a sorted set with scores Redis Docs
Source§

#### fn zrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index Redis Docs
Source§

#### fn zrange_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

#### fn zrangebylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

#### fn zrangebylex_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

#### fn zrevrangebylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

#### fn zrevrangebylex_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

#### fn zrangebyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score. Redis Docs
Source§

#### fn zrangebyscore_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

#### fn zrangebyscore_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

#### fn zrangebyscore_limit_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

#### fn zrank<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine the index of a member in a sorted set. Redis Docs
Source§

#### fn zrem<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove one or more members from a sorted set. Redis Docs
Source§

#### fn zrembylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

#### fn zremrangebyrank<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove all members in a sorted set within the given indexes. Redis Docs
Source§

#### fn zrembyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Remove all members in a sorted set within the given scores. Redis Docs
Source§

#### fn zrevrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

#### fn zrevrange_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index, with scores ordered from high to low. Redis Docs
Source§

#### fn zrevrangebyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score. Redis Docs
Source§

#### fn zrevrangebyscore_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

#### fn zrevrangebyscore_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

#### fn zrevrangebyscore_limit_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

#### fn zrevrank<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

#### fn zscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the score associated with the given member in a sorted set. Redis Docs
Source§

#### fn zscore_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: &'a [M], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

#### fn zunionstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

#### fn zunionstore_min<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

#### fn zunionstore_max<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

#### fn zunionstore_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zunionstore`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zunionstore_min_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zunionstore_min`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zunionstore_max_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
`Commands::zunionstore_max`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn vadd<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, input: VectorAddInput<'a>, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Add a new element into the vector set specified by key. Redis Docs
Source§

#### fn vadd_options<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, input: VectorAddInput<'a>, element: E, options: &'a VAddOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Add a new element into the vector set specified by key with optional parameters for fine-tuning the insertion process. Redis Docs
Source§

#### fn vcard<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Get the number of members in a vector set. Redis Docs
Source§

#### fn vdim<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the number of dimensions of the vectors in the specified vector set. Redis Docs
Source§

#### fn vemb<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the approximate vector associated with a given element in the vector set. Redis Docs
Source§

#### fn vemb_options<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, options: &'a VEmbOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the raw internal representation of the approximate vector associated with a given element in the vector set. Vector sets normalize and may quantize vectors on insertion. VEMB reverses this process to approximate the original vector by de-normalizing and de-quantizing it. Redis Docs
Source§

#### fn vrem<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Remove an element from a vector set. Redis Docs
Source§

#### fn vsetattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, J: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, json_object: &'a J, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Associate a JSON object with an element in a vector set. Use this command to store attributes that can be used in filtered similarity searches with VSIM. Redis Docs
Source§

#### fn vdelattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Delete the JSON attributes associated with an element in a vector set. This is an utility function that uses VSETATTR with an empty string. Redis Docs
Source§

#### fn vgetattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the JSON attributes associated with an element in a vector set. Redis Docs
Source§

#### fn vinfo<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return metadata and internal details about a vector set, including size, dimensions, quantization type, and graph structure. Redis Docs
Source§

#### fn vlinks<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the neighbors of a specified element in a vector set. The command shows the connections for each layer of the HNSW graph. Redis Docs
Source§

#### fn vlinks_with_scores<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return the neighbors of a specified element in a vector set. The command shows the connections for each layer of the HNSW graph and includes similarity scores for each neighbor. Redis Docs]
Source§

#### fn vrandmember<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return one random elements from a vector set. Redis Docs
Source§

#### fn vrandmember_multiple<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, count: usize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Return multiple random elements from a vector set. Redis Docs
Source§

#### fn vsim<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, input: VectorSimilaritySearchInput<'a>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Perform vector similarity search. Redis Docs
Source§

#### fn vsim_options<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, input: VectorSimilaritySearchInput<'a>, options: &'a VSimOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `vector-sets` only.
Performs a vector similarity search with optional parameters for customization. Redis Docs
Source§

#### fn pfadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

#### fn pfcount<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

#### fn pfmerge<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Merge N different HyperLogLogs into a single one. Redis Docs
Source§

#### fn publish<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, channel: K, message: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Posts a message to the given channel. Redis Docs
Source§

#### fn spublish<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, channel: K, message: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Posts a message to the given sharded channel. Redis Docs
Source§

#### fn object_encoding<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the encoding of a key. Redis Docs
Source§

#### fn object_idletime<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the time in seconds since the last access of a key. Redis Docs
Source§

#### fn object_freq<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

#### fn object_refcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the reference count of a key. Redis Docs
Source§

#### fn client_getname<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

#### fn client_id<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Returns the ID of the current connection. Redis Docs
Source§

#### fn client_setname<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, connection_name: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Command assigns a name to the current connection. Redis Docs
Source§

#### fn acl_load<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs from the file, replacing all the current ACL rules with the ones defined in the file. Redis Docs
Source§

#### fn acl_save<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file. Redis Docs
Source§

#### fn acl_list<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Shows the currently active ACL rules in the Redis server. Redis Docs
Source§

#### fn acl_users<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Shows a list of all the usernames of the currently configured users in the Redis ACL system. Redis Docs
Source§

#### fn acl_getuser<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, username: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Returns all the rules defined for an existing ACL user. Redis Docs
Source§

#### fn acl_setuser<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, username: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Creates an ACL user without any privilege. Redis Docs
Source§

#### fn acl_setuser_rules<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, username: K, rules: &'a [Rule], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Creates an ACL user with the specified rules or modify the rules of an existing user. Redis Docs
Source§

#### fn acl_deluser<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, usernames: &'a [K], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Delete all the specified ACL users and terminate all the connections that are authenticated with such users. Redis Docs
Source§

#### fn acl_dryrun<'a, K: ToSingleRedisArg + Send + Sync + 'a, C: ToSingleRedisArg + Send + Sync + 'a, A: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, username: K, command: C, args: A, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Simulate the execution of a given command by a given user. Redis Docs
Source§

#### fn acl_cat<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Shows the available ACL categories. Redis Docs
Source§

#### fn acl_cat_categoryname<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, categoryname: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Shows all the Redis commands in the specified category. Redis Docs
Source§

#### fn acl_genpass<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Generates a 256-bits password starting from /dev/urandom if available. Redis Docs
Source§

#### fn acl_genpass_bits<'a, RV>(&'a mut self, bits: isize) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Generates a 1-to-1024-bits password starting from /dev/urandom if available. Redis Docs
Source§

#### fn acl_whoami<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Returns the username the current connection is authenticated with. Redis Docs
Source§

#### fn acl_log<'a, RV>(&'a mut self, count: isize) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Shows a list of recent ACL security events Redis Docs
Source§

#### fn acl_log_reset<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Clears the ACL log. Redis Docs
Source§

#### fn acl_help<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `acl` only.
Returns a helpful text describing the different subcommands. Redis Docs
Source§

#### fn geo_add<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Adds the specified geospatial items to the specified key. Read more
Source§

#### fn geo_dist<'a, K: ToSingleRedisArg + Send + Sync + 'a, M1: ToSingleRedisArg + Send + Sync + 'a, M2: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member1: M1, member2: M2, unit: Unit, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Return the distance between two members in the geospatial index represented by the sorted set. Read more
Source§

#### fn geo_hash<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Return valid Geohash strings representing the position of one or more members of the geospatial index represented by the sorted set at key. Read more
Source§

#### fn geo_pos<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Return the positions of all the specified members of the geospatial index represented by the sorted set at key. Read more
Source§

#### fn geo_radius<'a, K: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, longitude: f64, latitude: f64, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Return the members of a sorted set populated with geospatial information using `geo_add`, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius). Read more
Source§

#### fn geo_radius_by_member<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, member: M, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `geospatial` only.
Retrieve members selected by distance with the center of `member`. The member itself is always contained in the results. Redis Docs
Source§

#### fn xack<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, I: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, ids: &'a [I], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Ack pending stream messages checked out by a consumer. Read more
Source§

#### fn xadd<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, id: ID, items: &'a [(F, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Add a stream message by `key`. Use `*` as the `id` for the current timestamp. Read more
Source§

#### fn xadd_map<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, BTM: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, id: ID, map: BTM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
BTreeMap variant for adding a stream message by `key`. Use `*` as the `id` for the current timestamp. Read more
Source§

#### fn xadd_options<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, I: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, id: ID, items: I, options: &'a StreamAddOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Add a stream message with options. Read more
Source§

#### fn xadd_maxlen<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, maxlen: StreamMaxlen, id: ID, items: &'a [(F, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Add a stream message while capping the stream at a maxlength. Read more
Source§

#### fn xadd_maxlen_map<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, BTM: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, maxlen: StreamMaxlen, id: ID, map: BTM, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
BTreeMap variant for adding a stream message while capping the stream at a maxlength. Read more
Source§

#### fn xautoclaim_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, start: S, options: StreamAutoClaimOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Perform a combined xpending and xclaim flow. Read more
Source§

#### fn xclaim<'a, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Claim pending, unacked messages, after some period of time, currently checked out by another consumer. Read more
Source§

#### fn xclaim_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], options: StreamClaimOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is the optional arguments version for claiming unacked, pending messages currently checked out by another consumer. Read more
Source§

#### fn xdel<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ids: &'a [ID], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Deletes a list of `id`s for a given stream `key`. Read more
Source§

#### fn xdel_ex<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ids: &'a [ID], options: StreamDeletionPolicy, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
An extension of the Streams `XDEL` command that provides finer control over how message entries are deleted with respect to consumer groups.
Source§

#### fn xack_del<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, ids: &'a [ID], options: StreamDeletionPolicy, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
A combination of `XACK` and `XDEL` that acknowledges and attempts to delete a list of `ids` for a given stream `key` and consumer `group`.
Source§

#### fn xgroup_create<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This command is used for creating a consumer `group`. It expects the stream key to already exist. Otherwise, use `xgroup_create_mkstream` if it doesn’t. The `id` is the starting message id all consumers should read from. Use `$` If you want all consumers to read from the last message added to stream. Read more
Source§

#### fn xgroup_createconsumer<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, consumer: C, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This creates a `consumer` explicitly (vs implicit via XREADGROUP) for given stream `key. Read more
Source§

#### fn xgroup_create_mkstream<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is the alternate version for creating a consumer `group` which makes the stream if it doesn’t exist. Read more
Source§

#### fn xgroup_setid<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Alter which `id` you want consumers to begin reading from an existing consumer `group`. Read more
Source§

#### fn xgroup_destroy<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Destroy an existing consumer `group` for a given stream `key` Read more
Source§

#### fn xgroup_delconsumer<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, consumer: C, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This deletes a `consumer` from an existing consumer `group` for given stream `key. Read more
Source§

#### fn xinfo_consumers<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This returns all info details about which consumers have read messages for given consumer `group`. Take note of the StreamInfoConsumersReply return type. Read more
Source§

#### fn xinfo_groups<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Returns all consumer `group`s created for a given stream `key`. Take note of the StreamInfoGroupsReply return type. Read more
Source§

#### fn xinfo_stream<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Returns info about high-level stream details (first & last message `id`, length, number of groups, etc.) Take note of the StreamInfoStreamReply return type. Read more
Source§

#### fn xlen<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Returns the number of messages for a given stream `key`. Read more
Source§

#### fn xpending<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is a basic version of making XPENDING command calls which only passes a stream `key` and consumer `group` and it returns details about which consumers have pending messages that haven’t been acked. Read more
Source§

#### fn xpending_count<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, start: S, end: E, count: C, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This XPENDING version returns a list of all messages over the range. You can use this for paginating pending messages (but without the message HashMap). Read more
Source§

#### fn xpending_consumer_count<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, CN: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, group: G, start: S, end: E, count: C, consumer: CN, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
An alternate version of `xpending_count` which filters by `consumer` name. Read more
Source§

#### fn xrange<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, start: S, end: E, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Returns a range of messages in a given stream `key`. Read more
Source§

#### fn xrange_all<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
A helper method for automatically returning all messages in a stream by `key`. Use with caution! Read more
Source§

#### fn xrange_count<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, start: S, end: E, count: C, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
A method for paginating a stream by `key`. Read more
Source§

#### fn xread<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: &'a [K], ids: &'a [ID], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Read a list of `id`s for each stream `key`. This is the basic form of reading streams. For more advanced control, like blocking, limiting, or reading by consumer `group`, see `xread_options`. Read more
Source§

#### fn xread_options<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, keys: &'a [K], ids: &'a [ID], options: &'a StreamReadOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This method handles setting optional arguments for `XREAD` or `XREADGROUP` Redis commands. Read more
Source§

#### fn xrevrange<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, end: E, start: S, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is the reverse version of `xrange`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xrevrange_all<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is the reverse version of `xrange_all`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xrevrange_count<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, end: E, start: S, count: C, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
This is the reverse version of `xrange_count`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xtrim<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, maxlen: StreamMaxlen, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Trim a stream `key` to a MAXLEN count. Read more
Source§

#### fn xtrim_options<'a, K: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, options: &'a StreamTrimOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `streams` only.
Trim a stream `key` with full options Read more
Source§

#### fn load_script<'a, RV>(&'a mut self, script: &'a Script) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `script` only.
Load a script. Read more
Source§

#### fn invoke_script<'a, RV>( &'a mut self, invocation: &'a ScriptInvocation<'a>, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `script` only.
Invoke a prepared script. Read more
Source§

#### fn flushall<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Deletes all the keys of all databases Read more
Source§

#### fn flushall_options<'a, RV>( &'a mut self, options: &'a FlushAllOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Deletes all the keys of all databases with options Read more
Source§

#### fn flushdb<'a, RV>(&'a mut self) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Deletes all the keys of the current database Read more
Source§

#### fn flushdb_options<'a, RV>( &'a mut self, options: &'a FlushDbOptions, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate feature `aio` only.
Deletes all the keys of the current database with options Read more
Source§

#### fn scan<RV: FromRedisValue>(&mut self) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space.
Source§

#### fn scan_options<RV: FromRedisValue>( &mut self, opts: ScanOptions, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space with options.
Source§

#### fn scan_match<P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space for keys matching a pattern.
Source§

#### fn hscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate hash fields and associated values.
Source§

#### fn hscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

#### fn sscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate set elements.
Source§

#### fn sscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate set elements for elements matching a pattern.
Source§

#### fn zscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate sorted set elements.
Source§

#### fn zscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate sorted set elements for elements matching a pattern.
Source§

### impl<T> AsyncTypedCommands for T
where T: ConnectionLike + Send + Sync,

Source§

#### fn get<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get the value of a key. If key is a vec this becomes an `MGET` (if using `TypedCommands`, you should specifically use `mget` to get the correct return type. Redis Docs
Source§

#### fn mget<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Vec<Option<String>>>

Available on crate feature `aio` only.
Get values of keys Redis Docs
Source§

#### fn keys<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Gets all keys matching pattern Redis Docs
Source§

#### fn set<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Set the string value of a key. Redis Docs
Source§

#### fn set_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, options: SetOptions, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Set the string value of a key with options. Redis Docs
Source§

#### fn mset<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, items: &'a [(K, V)], ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Sets multiple keys to their values. Redis Docs
Source§

#### fn set_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, seconds: u64, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Set the value and expiration of a key. Redis Docs
Source§

#### fn pset_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, milliseconds: u64, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Set the value and expiration in milliseconds of a key. Redis Docs
Source§

#### fn set_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set the value of a key, only if the key does not exist Redis Docs
Source§

#### fn mset_nx<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, items: &'a [(K, V)], ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

#### fn mset_ex<'a, K: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, items: &'a [(K, V)], options: MSetOptions, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Sets the given keys to their respective values. This command is an extension of the MSETNX that adds expiration and XX options. Redis Docs
Source§

#### fn getset<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Set the string value of a key and return its old value. Redis Docs
Source§

#### fn getrange<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, from: isize, to: isize, ) -> RedisFuture<'a, String>

Available on crate feature `aio` only.
Get a range of bytes/substring from the value of a key. Negative values provide an offset from the end of the value. Redis returns an empty string if the key doesn’t exist, not Nil Redis Docs
Source§

#### fn setrange<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, offset: isize, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Overwrite the part of the value stored in key at the specified offset. Redis Docs
Source§

#### fn del<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

#### fn del_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value_comparison: ValueComparison, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Conditionally removes the specified key. A key is ignored if it does not exist. IFEQ `match-value` - Delete the key only if its value is equal to `match-value` IFNE `match-value` - Delete the key only if its value is not equal to `match-value` IFDEQ `match-digest` - Delete the key only if the digest of its value is equal to `match-digest` IFDNE `match-digest` - Delete the key only if the digest of its value is not equal to `match-digest` Redis Docs
Source§

#### fn digest<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get the hex signature of the value stored in the specified key. For the digest, Redis will use XXH3 Redis Docs
Source§

#### fn exists<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Determine if a key exists. Redis Docs
Source§

#### fn key_type<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, ValueType>

Available on crate feature `aio` only.
Determine the type of key. Redis Docs
Source§

#### fn expire<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, seconds: i64, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

#### fn expire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ts: i64, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

#### fn pexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ms: i64, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

#### fn pexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ts: i64, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set the expiration for a key as a UNIX timestamp in milliseconds. Returns whether expiration was set. Redis Docs
Source§

#### fn expire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, IntegerReplyOrNoOp>

Available on crate feature `aio` only.
Get the absolute Unix expiration timestamp in seconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn pexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, IntegerReplyOrNoOp>

Available on crate feature `aio` only.
Get the absolute Unix expiration timestamp in milliseconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn persist<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

#### fn ttl<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, IntegerReplyOrNoOp>

Available on crate feature `aio` only.
Get the time to live for a key in seconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn pttl<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, IntegerReplyOrNoOp>

Available on crate feature `aio` only.
Get the time to live for a key in milliseconds. Returns `ExistsButNotRelevant` if key exists but has no expiration time. Redis Docs
Source§

#### fn get_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, expire_at: Expiry, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get the value of a key and set expiration Redis Docs
Source§

#### fn get_del<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get the value of a key and delete it Redis Docs
Source§

#### fn copy<'a, KSrc: ToSingleRedisArg + Send + Sync + 'a, KDst: ToSingleRedisArg + Send + Sync + 'a, Db: ToString + Send + Sync + 'a>( &'a mut self, source: KSrc, destination: KDst, options: CopyOptions<Db>, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

#### fn rename<'a, K: ToSingleRedisArg + Send + Sync + 'a, N: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, new_key: N, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Rename a key. Errors if key does not exist. Redis Docs
Source§

#### fn rename_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, N: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, new_key: N, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Rename a key, only if the new key does not exist. Errors if key does not exist. Returns whether the key was renamed, or false if the new key already exists. Redis Docs
Source§

#### fn unlink<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Unlink one or more keys. This is a non-blocking version of `DEL`. Returns number of keys unlinked. Redis Docs
Source§

#### fn append<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Append a value to a key. Returns length of string after operation. Redis Docs
Source§

#### fn incr<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, delta: V, ) -> RedisFuture<'a, isize>

Available on crate feature `aio` only.
Increment the numeric value of a key by the given amount. This issues a `INCRBY` or `INCRBYFLOAT` depending on the type. If the key does not exist, it is set to 0 before performing the operation.
Source§

#### fn decr<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, delta: V, ) -> RedisFuture<'a, isize>

Available on crate feature `aio` only.
Decrement the numeric value of a key by the given amount. If the key does not exist, it is set to 0 before performing the operation. Redis Docs
Source§

#### fn setbit<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, offset: usize, value: bool, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Sets or clears the bit at offset in the string value stored at key. Returns the original bit value stored at offset. Redis Docs
Source§

#### fn getbit<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, offset: usize, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

#### fn bitcount<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

#### fn bitcount_range<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: usize, end: usize, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

#### fn bit_and<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Perform a bitwise AND between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_or<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Perform a bitwise OR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_xor<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Perform a bitwise XOR between multiple keys (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_not<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, dstkey: D, srckey: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Perform a bitwise NOT of the key (containing string values) and store the result in the destination key. Returns size of destination string after operation. Redis Docs
Source§

#### fn bit_diff<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
DIFF(X, Y1, Y2, …)
Perform a set difference to extract the members of X that are not members of any of Y1, Y2,….
Logical representation: X ∧ ¬(Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_diff1<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
DIFF1(X, Y1, Y2, …) (Relative complement difference)
Perform a relative complement set difference to extract the members of one or more of Y1, Y2,… that are not members of X.
Logical representation: ¬X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_and_or<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
ANDOR(X, Y1, Y2, …)
Perform an “intersection of union(s)” operation to extract the members of X that are also members of one or more of Y1, Y2,….
Logical representation: X ∧ (Y1 ∨ Y2 ∨ …)
Redis Docs
Source§

#### fn bit_one<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
ONE(X, Y1, Y2, …)
Perform an “exclusive membership” operation to extract the members of exactly one of X, Y1, Y2, ….
Logical representation: (X ∨ Y1 ∨ Y2 ∨ …) ∧ ¬((X ∧ Y1) ∨ (X ∧ Y2) ∨ (Y1 ∧ Y2) ∨ (Y1 ∧ Y3) ∨ …)
Redis Docs
Source§

#### fn strlen<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

#### fn hget<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Gets a single (or multiple) fields from a hash.
Source§

#### fn hmget<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Gets multiple fields from a hash. Redis Docs
Source§

#### fn hget_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, expire_at: Expiry, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

#### fn hdel<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

#### fn hget_del<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<Option<String>>>

Available on crate feature `aio` only.
Get and delete the value of one or more fields of a given hash key Redis Docs
Source§

#### fn hset<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, field: F, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

#### fn hset_ex<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, hash_field_expiration_options: &'a HashFieldExpirationOptions, fields_values: &'a [(F, V)], ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs
Source§

#### fn hset_nx<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, field: F, value: V, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Sets a single field in a hash if it does not exist. Returns whether the field was added. Redis Docs
Source§

#### fn hset_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, items: &'a [(F, V)], ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Sets multiple fields in a hash. Redis Docs
Source§

#### fn hincr<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, field: F, delta: D, ) -> RedisFuture<'a, f64>

Available on crate feature `aio` only.
Increments a value. Returns the new value of the field after incrementation.
Source§

#### fn hexists<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, field: F, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Checks if a field in a hash exists. Redis Docs
Source§

#### fn httl<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Get one or more fields’ TTL in seconds. Redis Docs
Source§

#### fn hpttl<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Get one or more fields’ TTL in milliseconds. Redis Docs
Source§

#### fn hexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, seconds: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Set one or more fields’ time to live in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Set the expiration for one or more fields as a UNIX timestamp in seconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

#### fn hpersist<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs
Source§

#### fn hpexpire<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, milliseconds: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Set one or more fields’ time to live in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with 0 seconds. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hpexpire_at<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Set the expiration for one or more fields as a UNIX timestamp in milliseconds. Returns an array where each element corresponds to the field at the same index in the fields argument. Each element of the array is either: 0 if the specified condition has not been met. 1 if the expiration time was updated. 2 if called with a time in the past. Errors if provided key exists but is not a hash. Redis Docs
Source§

#### fn hpexpire_time<'a, K: ToSingleRedisArg + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, fields: F, ) -> RedisFuture<'a, Vec<IntegerReplyOrNoOp>>

Available on crate feature `aio` only.
Returns the absolute Unix expiration timestamp in seconds. Redis Docs
Source§

#### fn hkeys<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Gets all the keys in a hash. Redis Docs
Source§

#### fn hvals<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Gets all the values in a hash. Redis Docs
Source§

#### fn hgetall<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, HashMap<String, String>>

Available on crate feature `aio` only.
Gets all the fields and values in a hash. Redis Docs
Source§

#### fn hlen<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

#### fn blmove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, timeout: f64, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Pop an element from a list, push it to another list and return it; or block until one is available Redis Docs
Source§

#### fn blmpop<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, timeout: f64, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisFuture<'a, Option<[String; 2]>>

Available on crate feature `aio` only.
Pops `count` elements from the first non-empty list key from the list of provided key names; or blocks until one is available. Redis Docs
Source§

#### fn blpop<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, Option<[String; 2]>>

Available on crate feature `aio` only.
Remove and get the first element in a list, or block until one is available. Redis Docs
Source§

#### fn brpop<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, Option<[String; 2]>>

Available on crate feature `aio` only.
Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

#### fn brpoplpush<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, srckey: S, dstkey: D, timeout: f64, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Pop a value from a list, push it to another list and return it; or block until one is available. Redis Docs
Source§

#### fn lindex<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, index: isize, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get an element from a list by its index. Redis Docs
Source§

#### fn linsert_before<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, pivot: P, value: V, ) -> RedisFuture<'a, isize>

Available on crate feature `aio` only.
Insert an element before another element in a list. Redis Docs
Source§

#### fn linsert_after<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, pivot: P, value: V, ) -> RedisFuture<'a, isize>

Available on crate feature `aio` only.
Insert an element after another element in a list. Redis Docs
Source§

#### fn llen<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Returns the length of the list stored at key. Redis Docs
Source§

#### fn lmove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, ) -> RedisFuture<'a, String>

Available on crate feature `aio` only.
Pop an element a list, push it to another list and return it Redis Docs
Source§

#### fn lmpop<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisFuture<'a, Option<(String, Vec<String>)>>

Available on crate feature `aio` only.
Pops `count` elements from the first non-empty list key from the list of provided key names. Redis Docs
Source§

#### fn lpop<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Removes and returns the up to `count` first elements of the list stored at key. Read more
Source§

#### fn lpos<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, value: V, options: LposOptions, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

#### fn lpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

#### fn lpush_exists<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Inserts a value at the head of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

#### fn lrange<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Returns the specified elements of the list stored at key. Redis Docs
Source§

#### fn lrem<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: isize, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

#### fn ltrim<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

#### fn lset<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, index: isize, value: V, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Sets the list element at index to value Redis Docs
Source§

#### fn ping<'a>(&'a mut self) -> RedisFuture<'a, String>

Available on crate feature `aio` only.
Sends a ping to the server Redis Docs
Source§

#### fn ping_message<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, message: K, ) -> RedisFuture<'a, String>

Available on crate feature `aio` only.
Sends a ping with a message to the server Redis Docs
Source§

#### fn rpop<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Removes and returns the up to `count` last elements of the list stored at key Read more
Source§

#### fn rpoplpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, dstkey: D, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Pop a value from a list, push it to another list and return it. Redis Docs
Source§

#### fn rpush<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

#### fn rpush_exists<'a, K: ToSingleRedisArg + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Inserts value at the tail of the list stored at key, only if key already exists and holds a list. Redis Docs
Source§

#### fn sadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add one or more members to a set. Redis Docs
Source§

#### fn scard<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Get the number of members in a set. Redis Docs
Source§

#### fn sdiff<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: K, ) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `aio` only.
Subtract multiple sets. Redis Docs
Source§

#### fn sdiffstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Subtract multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn sinter<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: K, ) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `aio` only.
Intersect multiple sets. Redis Docs
Source§

#### fn sinterstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn sismember<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Determine if a given value is a member of a set. Redis Docs
Source§

#### fn smismember<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, Vec<bool>>

Available on crate feature `aio` only.
Determine if given values are members of a set. Redis Docs
Source§

#### fn smembers<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `aio` only.
Get all the members in a set. Redis Docs
Source§

#### fn smove<'a, S: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, srckey: S, dstkey: D, member: M, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Move a member from one set to another. Redis Docs
Source§

#### fn spop<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Remove and return a random member from a set. Redis Docs
Source§

#### fn srandmember<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Get one random member from a set. Redis Docs
Source§

#### fn srandmember_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Get multiple random members from a set. Redis Docs
Source§

#### fn srem<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Remove one or more members from a set. Redis Docs
Source§

#### fn sunion<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: K, ) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `aio` only.
Add multiple sets. Redis Docs
Source§

#### fn sunionstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add multiple sets and store the resulting set in a key. Redis Docs
Source§

#### fn zadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, score: S, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, items: &'a [(S, M)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, score: S, options: &'a SortedSetAddOptions, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zadd_multiple_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, items: &'a [(S, M)], options: &'a SortedSetAddOptions, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

#### fn zcard<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Get the number of members in a sorted set. Redis Docs
Source§

#### fn zcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Count the members in a sorted set with scores within the given values. Redis Docs
Source§

#### fn zincr<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, D: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, delta: D, ) -> RedisFuture<'a, f64>

Available on crate feature `aio` only.
Increments the member in a sorted set at key by delta. If the member does not exist, it is added with delta as its score. Redis Docs
Source§

#### fn zinterstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

#### fn zinterstore_min<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

#### fn zinterstore_max<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Intersect multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

#### fn zinterstore_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zinterstore`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zinterstore_min_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zinterstore_min`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zinterstore_max_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zinterstore_max`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zlexcount<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Count the number of members in a sorted set between a given lexicographical range. Redis Docs
Source§

#### fn bzpopmax<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, Option<(String, String, f64)>>

Available on crate feature `aio` only.
Removes and returns the member with the highest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zpopmax<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores in a sorted set Redis Docs
Source§

#### fn bzpopmin<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, timeout: f64, ) -> RedisFuture<'a, Option<(String, String, f64)>>

Available on crate feature `aio` only.
Removes and returns the member with the lowest score in a sorted set. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zpopmin<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores in a sorted set Redis Docs
Source§

#### fn bzmpop_max<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> RedisFuture<'a, Option<(String, Vec<(String, f64)>)>>

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zmpop_max<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: K, count: isize, ) -> RedisFuture<'a, Option<(String, Vec<(String, f64)>)>>

Available on crate feature `aio` only.
Removes and returns up to count members with the highest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

#### fn bzmpop_min<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, timeout: f64, keys: K, count: isize, ) -> RedisFuture<'a, Option<(String, Vec<(String, f64)>)>>

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Blocks until a member is available otherwise. Redis Docs
Source§

#### fn zmpop_min<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: K, count: isize, ) -> RedisFuture<'a, Option<(String, Vec<(String, f64)>)>>

Available on crate feature `aio` only.
Removes and returns up to count members with the lowest scores, from the first non-empty sorted set in the provided list of key names. Redis Docs
Source§

#### fn zrandmember<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: Option<isize>, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Return up to count random members in a sorted set (or 1 if `count == None`) Redis Docs
Source§

#### fn zrandmember_withscores<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisFuture<'a, RV>

Available on crate feature `aio` only.
Return up to count random members in a sorted set with scores Redis Docs
Source§

#### fn zrange<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index Redis Docs
Source§

#### fn zrange_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, Vec<(String, f64)>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

#### fn zrangebylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

#### fn zrangebylex_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

#### fn zrevrangebylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

#### fn zrevrangebylex_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

#### fn zrangebyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score. Redis Docs
Source§

#### fn zrangebyscore_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, Vec<(String, usize)>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

#### fn zrangebyscore_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

#### fn zrangebyscore_limit_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<(String, usize)>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

#### fn zrank<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, Option<usize>>

Available on crate feature `aio` only.
Determine the index of a member in a sorted set. Redis Docs
Source§

#### fn zrem<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Remove one or more members from a sorted set. Redis Docs
Source§

#### fn zrembylex<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

#### fn zremrangebyrank<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Remove all members in a sorted set within the given indexes. Redis Docs
Source§

#### fn zrembyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Remove all members in a sorted set within the given scores. Redis Docs
Source§

#### fn zrevrange<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

#### fn zrevrange_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by index, with scores ordered from high to low. Redis Docs
Source§

#### fn zrevrangebyscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score. Redis Docs
Source§

#### fn zrevrangebyscore_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

#### fn zrevrangebyscore_limit<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

#### fn zrevrangebyscore_limit_withscores<'a, K: ToSingleRedisArg + Send + Sync + 'a, MM: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `aio` only.
Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

#### fn zrevrank<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, Option<usize>>

Available on crate feature `aio` only.
Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

#### fn zscore<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisFuture<'a, Option<f64>>

Available on crate feature `aio` only.
Get the score associated with the given member in a sorted set. Redis Docs
Source§

#### fn zscore_multiple<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: &'a [M], ) -> RedisFuture<'a, Option<Vec<f64>>>

Available on crate feature `aio` only.
Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

#### fn zunionstore<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using SUM as aggregation function. Redis Docs
Source§

#### fn zunionstore_min<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using MIN as aggregation function. Redis Docs
Source§

#### fn zunionstore_max<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Unions multiple sorted sets and store the resulting sorted set in a new key using MAX as aggregation function. Redis Docs
Source§

#### fn zunionstore_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zunionstore`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zunionstore_min_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zunionstore_min`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn zunionstore_max_weights<'a, D: ToSingleRedisArg + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
`Commands::zunionstore_max`, but with the ability to specify a multiplication factor for each sorted set by pairing one with each key in a tuple. Redis Docs
Source§

#### fn vadd<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, input: VectorAddInput<'a>, element: E, ) -> RedisFuture<'a, bool>

Available on crate feature `vector-sets` only.
Add a new element into the vector set specified by key. Redis Docs
Source§

#### fn vadd_options<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, input: VectorAddInput<'a>, element: E, options: &'a VAddOptions, ) -> RedisFuture<'a, bool>

Available on crate feature `vector-sets` only.
Add a new element into the vector set specified by key with optional parameters for fine-tuning the insertion process. Redis Docs
Source§

#### fn vcard<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `vector-sets` only.
Get the number of members in a vector set. Redis Docs
Source§

#### fn vdim<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `vector-sets` only.
Return the number of dimensions of the vectors in the specified vector set. Redis Docs
Source§

#### fn vemb<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Return the approximate vector associated with a given element in the vector set. Redis Docs
Source§

#### fn vemb_options<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, options: &'a VEmbOptions, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Return the raw internal representation of the approximate vector associated with a given element in the vector set. Vector sets normalize and may quantize vectors on insertion. VEMB reverses this process to approximate the original vector by de-normalizing and de-quantizing it. Redis Docs
Source§

#### fn vrem<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, bool>

Available on crate feature `vector-sets` only.
Remove an element from a vector set. Redis Docs
Source§

#### fn vsetattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, J: Serialize + Send + Sync + 'a>( &'a mut self, key: K, element: E, json_object: &'a J, ) -> RedisFuture<'a, bool>

Available on crate feature `vector-sets` only.
Associate a JSON object with an element in a vector set. Use this command to store attributes that can be used in filtered similarity searches with VSIM. Redis Docs
Source§

#### fn vdelattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, bool>

Available on crate feature `vector-sets` only.
Delete the JSON attributes associated with an element in a vector set. This is an utility function that uses VSETATTR with an empty string. Redis Docs
Source§

#### fn vgetattr<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `vector-sets` only.
Return the JSON attributes associated with an element in a vector set. Redis Docs
Source§

#### fn vinfo<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<HashMap<String, Value>>>

Available on crate feature `vector-sets` only.
Return metadata and internal details about a vector set, including size, dimensions, quantization type, and graph structure. Redis Docs
Source§

#### fn vlinks<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Return the neighbors of a specified element in a vector set. The command shows the connections for each layer of the HNSW graph. Redis Docs
Source§

#### fn vlinks_with_scores<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Return the neighbors of a specified element in a vector set. The command shows the connections for each layer of the HNSW graph and includes similarity scores for each neighbor. Redis Docs]
Source§

#### fn vrandmember<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `vector-sets` only.
Return one random elements from a vector set. Redis Docs
Source§

#### fn vrandmember_multiple<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: usize, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `vector-sets` only.
Return multiple random elements from a vector set. Redis Docs
Source§

#### fn vsim<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, input: VectorSimilaritySearchInput<'a>, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Perform vector similarity search. Redis Docs
Source§

#### fn vsim_options<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, input: VectorSimilaritySearchInput<'a>, options: &'a VSimOptions, ) -> RedisFuture<'a, RV>

Available on crate feature `vector-sets` only.
Performs a vector similarity search with optional parameters for customization. Redis Docs
Source§

#### fn pfadd<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisFuture<'a, bool>

Available on crate feature `aio` only.
Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

#### fn pfcount<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

#### fn pfmerge<'a, D: ToSingleRedisArg + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Merge N different HyperLogLogs into a single one. Redis Docs
Source§

#### fn publish<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, channel: K, message: E, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Posts a message to the given channel. Redis Docs
Source§

#### fn spublish<'a, K: ToSingleRedisArg + Send + Sync + 'a, E: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, channel: K, message: E, ) -> RedisFuture<'a, usize>

Available on crate feature `aio` only.
Posts a message to the given sharded channel. Redis Docs
Source§

#### fn object_encoding<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Returns the encoding of a key. Redis Docs
Source§

#### fn object_idletime<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<usize>>

Available on crate feature `aio` only.
Returns the time in seconds since the last access of a key. Redis Docs
Source§

#### fn object_freq<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<usize>>

Available on crate feature `aio` only.
Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

#### fn object_refcount<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<usize>>

Available on crate feature `aio` only.
Returns the reference count of a key. Redis Docs
Source§

#### fn client_getname<'a>(&'a mut self) -> RedisFuture<'a, Option<String>>

Available on crate feature `aio` only.
Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

#### fn client_id<'a>(&'a mut self) -> RedisFuture<'a, isize>

Available on crate feature `aio` only.
Returns the ID of the current connection. Redis Docs
Source§

#### fn client_setname<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, connection_name: K, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Command assigns a name to the current connection. Redis Docs
Source§

#### fn acl_load<'a>(&'a mut self) -> RedisFuture<'a, ()>

Available on crate feature `acl` only.
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs from the file, replacing all the current ACL rules with the ones defined in the file. Redis Docs
Source§

#### fn acl_save<'a>(&'a mut self) -> RedisFuture<'a, ()>

Available on crate feature `acl` only.
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file. Redis Docs
Source§

#### fn acl_list<'a>(&'a mut self) -> RedisFuture<'a, Vec<String>>

Available on crate feature `acl` only.
Shows the currently active ACL rules in the Redis server. Redis Docs
Source§

#### fn acl_users<'a>(&'a mut self) -> RedisFuture<'a, Vec<String>>

Available on crate feature `acl` only.
Shows a list of all the usernames of the currently configured users in the Redis ACL system. Redis Docs
Source§

#### fn acl_getuser<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, username: K, ) -> RedisFuture<'a, Option<AclInfo>>

Available on crate feature `acl` only.
Returns all the rules defined for an existing ACL user. Redis Docs
Source§

#### fn acl_setuser<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, username: K, ) -> RedisFuture<'a, ()>

Available on crate feature `acl` only.
Creates an ACL user without any privilege. Redis Docs
Source§

#### fn acl_setuser_rules<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, username: K, rules: &'a [Rule], ) -> RedisFuture<'a, ()>

Available on crate feature `acl` only.
Creates an ACL user with the specified rules or modify the rules of an existing user. Redis Docs
Source§

#### fn acl_deluser<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, usernames: &'a [K], ) -> RedisFuture<'a, usize>

Available on crate feature `acl` only.
Delete all the specified ACL users and terminate all the connections that are authenticated with such users. Redis Docs
Source§

#### fn acl_dryrun<'a, K: ToSingleRedisArg + Send + Sync + 'a, C: ToSingleRedisArg + Send + Sync + 'a, A: ToRedisArgs + Send + Sync + 'a>( &'a mut self, username: K, command: C, args: A, ) -> RedisFuture<'a, String>

Available on crate feature `acl` only.
Simulate the execution of a given command by a given user. Redis Docs
Source§

#### fn acl_cat<'a>(&'a mut self) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `acl` only.
Shows the available ACL categories. Redis Docs
Source§

#### fn acl_cat_categoryname<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, categoryname: K, ) -> RedisFuture<'a, HashSet<String>>

Available on crate feature `acl` only.
Shows all the Redis commands in the specified category. Redis Docs
Source§

#### fn acl_genpass<'a>(&'a mut self) -> RedisFuture<'a, String>

Available on crate feature `acl` only.
Generates a 256-bits password starting from /dev/urandom if available. Redis Docs
Source§

#### fn acl_genpass_bits<'a>(&'a mut self, bits: isize) -> RedisFuture<'a, String>

Available on crate feature `acl` only.
Generates a 1-to-1024-bits password starting from /dev/urandom if available. Redis Docs
Source§

#### fn acl_whoami<'a>(&'a mut self) -> RedisFuture<'a, String>

Available on crate feature `acl` only.
Returns the username the current connection is authenticated with. Redis Docs
Source§

#### fn acl_log<'a>(&'a mut self, count: isize) -> RedisFuture<'a, Vec<String>>

Available on crate feature `acl` only.
Shows a list of recent ACL security events Redis Docs
Source§

#### fn acl_log_reset<'a>(&'a mut self) -> RedisFuture<'a, ()>

Available on crate feature `acl` only.
Clears the ACL log. Redis Docs
Source§

#### fn acl_help<'a>(&'a mut self) -> RedisFuture<'a, Vec<String>>

Available on crate feature `acl` only.
Returns a helpful text describing the different subcommands. Redis Docs
Source§

#### fn geo_add<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, usize>

Available on crate feature `geospatial` only.
Adds the specified geospatial items to the specified key. Read more
Source§

#### fn geo_dist<'a, K: ToSingleRedisArg + Send + Sync + 'a, M1: ToSingleRedisArg + Send + Sync + 'a, M2: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member1: M1, member2: M2, unit: Unit, ) -> RedisFuture<'a, Option<f64>>

Available on crate feature `geospatial` only.
Return the distance between two members in the geospatial index represented by the sorted set. Read more
Source§

#### fn geo_hash<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, Vec<String>>

Available on crate feature `geospatial` only.
Return valid Geohash strings representing the position of one or more members of the geospatial index represented by the sorted set at key. Read more
Source§

#### fn geo_pos<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisFuture<'a, Vec<Option<Coord<f64>>>>

Available on crate feature `geospatial` only.
Return the positions of all the specified members of the geospatial index represented by the sorted set at key. Read more
Source§

#### fn geo_radius<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, longitude: f64, latitude: f64, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisFuture<'a, Vec<RadiusSearchResult>>

Available on crate feature `geospatial` only.
Return the members of a sorted set populated with geospatial information using `geo_add`, which are within the borders of the area specified with the center location and the maximum distance from the center (the radius). Read more
Source§

#### fn geo_radius_by_member<'a, K: ToSingleRedisArg + Send + Sync + 'a, M: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, member: M, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisFuture<'a, Vec<RadiusSearchResult>>

Available on crate feature `geospatial` only.
Retrieve members selected by distance with the center of `member`. The member itself is always contained in the results. Redis Docs
Source§

#### fn xack<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, I: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, ids: &'a [I], ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
Ack pending stream messages checked out by a consumer. Read more
Source§

#### fn xadd<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, id: ID, items: &'a [(F, V)], ) -> RedisFuture<'a, Option<String>>

Available on crate feature `streams` only.
Add a stream message by `key`. Use `*` as the `id` for the current timestamp. Read more
Source§

#### fn xadd_map<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, BTM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, id: ID, map: BTM, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `streams` only.
BTreeMap variant for adding a stream message by `key`. Use `*` as the `id` for the current timestamp. Read more
Source§

#### fn xadd_options<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, I: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, id: ID, items: I, options: &'a StreamAddOptions, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `streams` only.
Add a stream message with options. Read more
Source§

#### fn xadd_maxlen<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, maxlen: StreamMaxlen, id: ID, items: &'a [(F, V)], ) -> RedisFuture<'a, Option<String>>

Available on crate feature `streams` only.
Add a stream message while capping the stream at a maxlength. Read more
Source§

#### fn xadd_maxlen_map<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, BTM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, maxlen: StreamMaxlen, id: ID, map: BTM, ) -> RedisFuture<'a, Option<String>>

Available on crate feature `streams` only.
BTreeMap variant for adding a stream message while capping the stream at a maxlength. Read more
Source§

#### fn xautoclaim_options<'a, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, start: S, options: StreamAutoClaimOptions, ) -> RedisFuture<'a, StreamAutoClaimReply>

Available on crate feature `streams` only.
Perform a combined xpending and xclaim flow. Read more
Source§

#### fn xclaim<'a, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], ) -> RedisFuture<'a, StreamClaimReply>

Available on crate feature `streams` only.
Claim pending, unacked messages, after some period of time, currently checked out by another consumer. Read more
Source§

#### fn xclaim_options<'a, RV: FromRedisValue, K: ToSingleRedisArg + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, MIT: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], options: StreamClaimOptions, ) -> RedisFuture<'a, RV>

Available on crate feature `streams` only.
This is the optional arguments version for claiming unacked, pending messages currently checked out by another consumer. Read more
Source§

#### fn xdel<'a, K: ToSingleRedisArg + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ids: &'a [ID], ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
Deletes a list of `id`s for a given stream `key`. Read more
Source§

#### fn xdel_ex<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ids: &'a [ID], options: StreamDeletionPolicy, ) -> RedisFuture<'a, Vec<XDelExStatusCode>>

Available on crate feature `streams` only.
An extension of the Streams `XDEL` command that provides finer control over how message entries are deleted with respect to consumer groups.
Source§

#### fn xack_del<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, ids: &'a [ID], options: StreamDeletionPolicy, ) -> RedisFuture<'a, Vec<XAckDelStatusCode>>

Available on crate feature `streams` only.
A combination of `XACK` and `XDEL` that acknowledges and attempts to delete a list of `ids` for a given stream `key` and consumer `group`.
Source§

#### fn xgroup_create<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, ()>

Available on crate feature `streams` only.
This command is used for creating a consumer `group`. It expects the stream key to already exist. Otherwise, use `xgroup_create_mkstream` if it doesn’t. The `id` is the starting message id all consumers should read from. Use `$` If you want all consumers to read from the last message added to stream. Read more
Source§

#### fn xgroup_createconsumer<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, consumer: C, ) -> RedisFuture<'a, bool>

Available on crate feature `streams` only.
This creates a `consumer` explicitly (vs implicit via XREADGROUP) for given stream `key. Read more
Source§

#### fn xgroup_create_mkstream<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, ()>

Available on crate feature `streams` only.
This is the alternate version for creating a consumer `group` which makes the stream if it doesn’t exist. Read more
Source§

#### fn xgroup_setid<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, id: ID, ) -> RedisFuture<'a, ()>

Available on crate feature `streams` only.
Alter which `id` you want consumers to begin reading from an existing consumer `group`. Read more
Source§

#### fn xgroup_destroy<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, bool>

Available on crate feature `streams` only.
Destroy an existing consumer `group` for a given stream `key` Read more
Source§

#### fn xgroup_delconsumer<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, consumer: C, ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
This deletes a `consumer` from an existing consumer `group` for given stream `key. Read more
Source§

#### fn xinfo_consumers<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, StreamInfoConsumersReply>

Available on crate feature `streams` only.
This returns all info details about which consumers have read messages for given consumer `group`. Take note of the StreamInfoConsumersReply return type. Read more
Source§

#### fn xinfo_groups<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, StreamInfoGroupsReply>

Available on crate feature `streams` only.
Returns all consumer `group`s created for a given stream `key`. Take note of the StreamInfoGroupsReply return type. Read more
Source§

#### fn xinfo_stream<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, StreamInfoStreamReply>

Available on crate feature `streams` only.
Returns info about high-level stream details (first & last message `id`, length, number of groups, etc.) Take note of the StreamInfoStreamReply return type. Read more
Source§

#### fn xlen<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
Returns the number of messages for a given stream `key`. Read more
Source§

#### fn xpending<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, ) -> RedisFuture<'a, StreamPendingReply>

Available on crate feature `streams` only.
This is a basic version of making XPENDING command calls which only passes a stream `key` and consumer `group` and it returns details about which consumers have pending messages that haven’t been acked. Read more
Source§

#### fn xpending_count<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, start: S, end: E, count: C, ) -> RedisFuture<'a, StreamPendingCountReply>

Available on crate feature `streams` only.
This XPENDING version returns a list of all messages over the range. You can use this for paginating pending messages (but without the message HashMap). Read more
Source§

#### fn xpending_consumer_count<'a, K: ToRedisArgs + Send + Sync + 'a, G: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, CN: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, group: G, start: S, end: E, count: C, consumer: CN, ) -> RedisFuture<'a, StreamPendingCountReply>

Available on crate feature `streams` only.
An alternate version of `xpending_count` which filters by `consumer` name. Read more
Source§

#### fn xrange<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: S, end: E, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
Returns a range of messages in a given stream `key`. Read more
Source§

#### fn xrange_all<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
A helper method for automatically returning all messages in a stream by `key`. Use with caution! Read more
Source§

#### fn xrange_count<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: S, end: E, count: C, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
A method for paginating a stream by `key`. Read more
Source§

#### fn xread<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: &'a [K], ids: &'a [ID], ) -> RedisFuture<'a, Option<StreamReadReply>>

Available on crate feature `streams` only.
Read a list of `id`s for each stream `key`. This is the basic form of reading streams. For more advanced control, like blocking, limiting, or reading by consumer `group`, see `xread_options`. Read more
Source§

#### fn xread_options<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, keys: &'a [K], ids: &'a [ID], options: &'a StreamReadOptions, ) -> RedisFuture<'a, Option<StreamReadReply>>

Available on crate feature `streams` only.
This method handles setting optional arguments for `XREAD` or `XREADGROUP` Redis commands. Read more
Source§

#### fn xrevrange<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, end: E, start: S, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
This is the reverse version of `xrange`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xrevrange_all<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
This is the reverse version of `xrange_all`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xrevrange_count<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, end: E, start: S, count: C, ) -> RedisFuture<'a, StreamRangeReply>

Available on crate feature `streams` only.
This is the reverse version of `xrange_count`. The same rules apply for `start` and `end` here. Read more
Source§

#### fn xtrim<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, maxlen: StreamMaxlen, ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
Trim a stream `key` to a MAXLEN count. Read more
Source§

#### fn xtrim_options<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, options: &'a StreamTrimOptions, ) -> RedisFuture<'a, usize>

Available on crate feature `streams` only.
Trim a stream `key` with full options Read more
Source§

#### fn load_script<'a, RV: FromRedisValue>( &'a mut self, script: &'a Script, ) -> RedisFuture<'a, RV>

Available on crate feature `script` only.
Load a script. Read more
Source§

#### fn invoke_script<'a, RV: FromRedisValue>( &'a mut self, invocation: &'a ScriptInvocation<'a>, ) -> RedisFuture<'a, RV>

Available on crate feature `script` only.
Invoke a prepared script. Read more
Source§

#### fn flushall<'a>(&'a mut self) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Deletes all the keys of all databases Read more
Source§

#### fn flushall_options<'a>( &'a mut self, options: &'a FlushAllOptions, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Deletes all the keys of all databases with options Read more
Source§

#### fn flushdb<'a>(&'a mut self) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Deletes all the keys of the current database Read more
Source§

#### fn flushdb_options<'a>( &'a mut self, options: &'a FlushDbOptions, ) -> RedisFuture<'a, ()>

Available on crate feature `aio` only.
Deletes all the keys of the current database with options Read more
Source§

#### fn scan<RV: FromRedisValue>(&mut self) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space.
Source§

#### fn scan_options<RV: FromRedisValue>( &mut self, opts: ScanOptions, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space with options.
Source§

#### fn scan_match<P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate the keys space for keys matching a pattern.
Source§

#### fn hscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate hash fields and associated values.
Source§

#### fn hscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

#### fn sscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate set elements.
Source§

#### fn sscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate set elements for elements matching a pattern.
Source§

#### fn zscan<K: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate sorted set elements.
Source§

#### fn zscan_match<K: ToSingleRedisArg, P: ToSingleRedisArg, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisFuture<'_, AsyncIter<'_, RV>>

Available on crate feature `aio` only.
Incrementally iterate sorted set elements for elements matching a pattern.
Source§

#### fn get_int<'a, K: ToSingleRedisArg + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Option<isize>>

Available on crate feature `aio` only.
Get a value from Redis and convert it to an `Option<isize>`.
Source§

#### fn mget_ints<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisFuture<'a, Vec<Option<isize>>>

Available on crate feature `aio` only.
Get values from Redis and convert them to `Option<isize>`s.
Source§

### impl<T> Borrow<T> for T
where T: ?Sized,

Source§

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

### impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

### impl<T> CloneToUninit for T
where T: Clone,

Source§

#### unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (`clone_to_uninit`)
Performs copy-assignment from `self` to `dest`. Read more
Source§

### impl<T> DynClone for T
where T: Clone,

Source§

#### fn __clone_box(&self, _: Private) -> *mut ()

Source§

### impl<T> From<T> for T

Source§

#### fn from(t: T) -> T

Returns the argument unchanged.

§

### impl<T> Instrument for T

§

#### fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [`Span`], returning an `Instrumented` wrapper. Read more
§

#### fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current `Span`, returning an `Instrumented` wrapper. Read more
Source§

### impl<T, U> Into<U> for T
where U: From<T>,

Source§

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

Source§

### impl<T> JsonAsyncCommands for T
where T: ConnectionLike + Send,

Source§

#### fn json_arr_append<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: &'a V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Append the JSON `value` to the array at `path` after the last element in it.
Source§

#### fn json_arr_index<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: &'a V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Index array at `path`, returns first occurrence of `value`
Source§

#### fn json_arr_index_ss<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: &'a V, start: &'a isize, stop: &'a isize, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Same as `json_arr_index` except takes a `start` and a `stop` value, setting these to `0` will mean they make no effect on the query Read more
Source§

#### fn json_arr_insert<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, index: i64, value: &'a V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Inserts the JSON `value` in the array at `path` before the `index` (shifts to the right). Read more
Source§

#### fn json_arr_len<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Reports the length of the JSON Array at `path` in `key`.
Source§

#### fn json_arr_pop<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, index: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Removes and returns an element from the `index` in the array. Read more
Source§

#### fn json_arr_trim<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, start: i64, stop: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Trims an array so that it contains only the specified inclusive range of elements. Read more
Source§

#### fn json_clear<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Clears container values (Arrays/Objects), and sets numeric values to 0.
Source§

#### fn json_del<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Deletes a value at `path`.
Source§

#### fn json_get<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToRedisArgs + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Gets JSON Value at `path`. Read more
Source§

#### fn json_mget<'a, K: ToRedisArgs + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Gets JSON Values at `path`. Read more
Source§

#### fn json_num_incr_by<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: i64, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Increments the number value stored at `path` by `number`.
Source§

#### fn json_obj_keys<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Returns the keys in the object that’s referenced by `path`.
Source§

#### fn json_obj_len<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Reports the number of keys in the JSON Object at `path` in `key`.
Source§

#### fn json_set<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: &'a V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Sets the JSON Value at `path` in `key`.
Source§

#### fn json_mset<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: Serialize + Send + Sync + 'a, RV>( &'a mut self, key_path_values: &'a [(K, P, V)], ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Sets the value at the path per key, for every given tuple.
Source§

#### fn json_str_append<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, V: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, value: V, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Appends the `json-string` values to the string at `path`.
Source§

#### fn json_str_len<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Reports the length of the JSON String at `path` in `key`.
Source§

#### fn json_toggle<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Toggle a `boolean` value stored at `path`.
Source§

#### fn json_type<'a, K: ToSingleRedisArg + Send + Sync + 'a, P: ToSingleRedisArg + Send + Sync + 'a, RV>( &'a mut self, key: K, path: P, ) -> RedisFuture<'a, RV>
where RV: FromRedisValue,

Available on crate features `json` and `aio` only.
Reports the type of JSON value at `path`.
§

### impl<T> PolicyExt for T
where T: ?Sized,

§

#### fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new `Policy` that returns [`Action::Follow`] only if `self` and `other` return `Action::Follow`. Read more
§

#### fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new `Policy` that returns [`Action::Follow`] if either `self` or `other` returns `Action::Follow`. Read more
Source§

### impl<T> ToOwned for T
where T: Clone,

Source§

#### type Owned = T

The resulting type after obtaining ownership.
Source§

#### fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

#### fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

### impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

#### type Error = Infallible

The type returned in the event of a conversion error.
Source§

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

### impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

### impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

#### fn vzip(self) -> V

§

### impl<T> WithSubscriber for T

§

#### fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided `Subscriber` to this type, returning a [`WithDispatch`] wrapper. Read more
§

#### fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default `Subscriber` to this type, returning a [`WithDispatch`] wrapper. Read more
§

### impl<T> ErasedDestructor for T
where T: 'static,

§

### impl<T> MaybeSendSync for T