Struct Client

Source
pub struct Client { /* private fields */ }
Expand description

The client type.

Implementations§

Source§

impl Client

The client acts as connector to the redis server. By itself it does not do much other than providing a convenient way to fetch a connection from it. In the future the plan is to provide a connection pool in the client.

When opening a client a URL in the following format should be used:

redis://host:port/db

Example usage::

let client = redis::Client::open("redis://127.0.0.1/").unwrap();
let con = client.get_connection().unwrap();
Source

pub fn open<T: IntoConnectionInfo>(params: T) -> RedisResult<Client>

Connects to a redis server and returns a client. This does not actually open a connection yet but it does perform some basic checks on the URL that might make the operation fail.

Source

pub fn get_connection(&self) -> RedisResult<Connection>

Instructs the client to actually connect to redis and returns a connection object. The connection object can be used to send commands to the server. This can fail with a variety of errors (like unreachable host) so it’s important that you handle those errors.

Source

pub fn get_connection_with_timeout( &self, timeout: Duration, ) -> RedisResult<Connection>

Instructs the client to actually connect to redis with specified timeout and returns a connection object. The connection object can be used to send commands to the server. This can fail with a variety of errors (like unreachable host) so it’s important that you handle those errors.

Source

pub fn get_connection_info(&self) -> &ConnectionInfo

Returns a reference of client connection info object.

Source§

impl Client

To enable async support you need to chose one of the supported runtimes and active its corresponding feature: tokio-comp or async-std-comp

Source

pub async fn get_multiplexed_async_connection( &self, ) -> RedisResult<MultiplexedConnection>

Returns an async connection from the client.

Source

pub async fn get_multiplexed_async_connection_with_timeouts( &self, response_timeout: Duration, connection_timeout: Duration, ) -> RedisResult<MultiplexedConnection>

👎Deprecated: Use get_multiplexed_async_connection_with_config instead

Returns an async connection from the client.

Source

pub async fn get_multiplexed_async_connection_with_config( &self, config: &AsyncConnectionConfig, ) -> RedisResult<MultiplexedConnection>

Returns an async connection from the client.

Source

pub async fn get_multiplexed_tokio_connection_with_response_timeouts( &self, response_timeout: Duration, connection_timeout: Duration, ) -> RedisResult<MultiplexedConnection>

Returns an async multiplexed connection from the client.

A multiplexed connection can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_multiplexed_tokio_connection( &self, ) -> RedisResult<MultiplexedConnection>

Returns an async multiplexed connection from the client.

A multiplexed connection can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn create_multiplexed_tokio_connection_with_response_timeout( &self, response_timeout: Duration, ) -> RedisResult<(MultiplexedConnection, impl Future<Output = ()>)>

Returns an async multiplexed connection from the client and a future which must be polled to drive any requests submitted to it (see Self::get_multiplexed_async_connection).

A multiplexed connection can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket). The multiplexer will return a timeout error on any request that takes longer then response_timeout.

Source

pub async fn create_multiplexed_tokio_connection( &self, ) -> RedisResult<(MultiplexedConnection, impl Future<Output = ()>)>

Returns an async multiplexed connection from the client and a future which must be polled to drive any requests submitted to it (see Self::get_multiplexed_async_connection).

A multiplexed connection can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_tokio_connection_manager( &self, ) -> RedisResult<ConnectionManager>

👎Deprecated: use get_connection_manager instead

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_connection_manager(&self) -> RedisResult<ConnectionManager>

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_tokio_connection_manager_with_backoff( &self, exponent_base: u64, factor: u64, number_of_retries: usize, ) -> RedisResult<ConnectionManager>

👎Deprecated: Use get_connection_manager_with_config instead

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_tokio_connection_manager_with_backoff_and_timeouts( &self, exponent_base: u64, factor: u64, number_of_retries: usize, response_timeout: Duration, connection_timeout: Duration, ) -> RedisResult<ConnectionManager>

👎Deprecated: Use get_connection_manager_with_config instead

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_connection_manager_with_backoff_and_timeouts( &self, exponent_base: u64, factor: u64, number_of_retries: usize, response_timeout: Duration, connection_timeout: Duration, ) -> RedisResult<ConnectionManager>

👎Deprecated: Use get_connection_manager_with_config instead

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_connection_manager_with_config( &self, config: ConnectionManagerConfig, ) -> RedisResult<ConnectionManager>

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_connection_manager_with_backoff( &self, exponent_base: u64, factor: u64, number_of_retries: usize, ) -> RedisResult<ConnectionManager>

👎Deprecated: Use get_connection_manager_with_config instead

Returns an async ConnectionManager from the client.

The connection manager wraps a MultiplexedConnection. If a command to that connection fails with a connection error, then a new connection is established in the background and the error is returned to the caller.

This means that on connection loss at least one command will fail, but the connection will be re-established automatically if possible. Please refer to the ConnectionManager docs for detailed reconnecting behavior.

A connection manager can be cloned, allowing requests to be be sent concurrently on the same underlying connection (tcp/unix socket).

Source

pub async fn get_async_pubsub(&self) -> RedisResult<PubSub>

Returns an async receiver for pub-sub messages.

Source

pub async fn get_async_monitor(&self) -> RedisResult<Monitor>

Returns an async receiver for monitor messages.

Trait Implementations§

Source§

impl Clone for Client

Source§

fn clone(&self) -> Client

Returns a copy 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 ConnectionLike for Client

Source§

fn req_packed_command(&mut self, cmd: &[u8]) -> RedisResult<Value>

Sends an already encoded (packed) command into the TCP socket and reads the single response from it.
Source§

fn get_db(&self) -> i64

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.
Source§

fn check_connection(&mut self) -> bool

Check that all connections it has are available (PING internally).
Source§

fn is_open(&self) -> bool

Returns the connection status. Read more
Source§

fn req_command(&mut self, cmd: &Cmd) -> RedisResult<Value>

Sends a Cmd into the TCP socket and reads a single response from it.
Source§

impl Debug for Client

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl UnwindSafe for Client

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> 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> Commands for T
where T: ConnectionLike,

Source§

fn get<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get values of keys Redis Docs
Source§

fn keys<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Gets all keys matching pattern Redis Docs
Source§

fn set<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Set the string value of a key. Redis Docs
Source§

fn set_options<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, options: SetOptions, ) -> RedisResult<RV>

Set the string value of a key with options. Redis Docs
Source§

fn set_multiple<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, items: &'a [(K, V)], ) -> RedisResult<RV>

👎Deprecated since 0.22.4: Renamed to mset() to reflect Redis name
Sets multiple keys to their values. Redis Docs
Source§

fn mset<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, items: &'a [(K, V)], ) -> RedisResult<RV>

Sets multiple keys to their values. Redis Docs
Source§

fn set_ex<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, seconds: u64, ) -> RedisResult<RV>

Set the value and expiration of a key. Redis Docs
Source§

fn pset_ex<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, milliseconds: u64, ) -> RedisResult<RV>

Set the value and expiration in milliseconds of a key. Redis Docs
Source§

fn set_nx<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Set the value of a key, only if the key does not exist Redis Docs
Source§

fn mset_nx<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, items: &'a [(K, V)], ) -> RedisResult<RV>

Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

fn getset<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Set the string value of a key and return its old value. Redis Docs
Source§

fn getrange<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, from: isize, to: isize, ) -> RedisResult<RV>

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: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, offset: isize, value: V, ) -> RedisResult<RV>

Overwrite the part of the value stored in key at the specified offset. Redis Docs
Source§

fn del<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

fn exists<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Determine if a key exists. Redis Docs
Source§

fn key_type<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Determine the type of key. Redis Docs
Source§

fn expire<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, seconds: i64, ) -> RedisResult<RV>

Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

fn expire_at<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ts: i64, ) -> RedisResult<RV>

Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

fn pexpire<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ms: i64, ) -> RedisResult<RV>

Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

fn pexpire_at<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ts: i64, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

fn ttl<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, expire_at: Expiry, ) -> RedisResult<RV>

Get the value of a key and set expiration Redis Docs
Source§

fn get_del<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get the value of a key and delete it Redis Docs
Source§

fn copy<'a, KSrc: ToRedisArgs, KDst: ToRedisArgs, Db: ToString, RV: FromRedisValue>( &mut self, source: KSrc, destination: KDst, options: CopyOptions<Db>, ) -> RedisResult<RV>

Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

fn rename<'a, K: ToRedisArgs, N: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, new_key: N, ) -> RedisResult<RV>

Rename a key. Errors if key does not exist. Redis Docs
Source§

fn rename_nx<'a, K: ToRedisArgs, N: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, new_key: N, ) -> RedisResult<RV>

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
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: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Append a value to a key. Returns length of string after operation. Redis Docs
Source§

fn incr<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, delta: V, ) -> RedisResult<RV>

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: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, delta: V, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, offset: usize, value: bool, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, offset: usize, ) -> RedisResult<RV>

Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

fn bitcount<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

fn bitcount_range<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: usize, end: usize, ) -> RedisResult<RV>

Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

fn bit_and<'a, D: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, srckeys: S, ) -> RedisResult<RV>

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.arg(“AND)
Source§

fn bit_or<'a, D: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, srckeys: S, ) -> RedisResult<RV>

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.arg(“OR)
Source§

fn bit_xor<'a, D: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, srckeys: S, ) -> RedisResult<RV>

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.arg(“XOR)
Source§

fn bit_not<'a, D: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, srckey: S, ) -> RedisResult<RV>

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.arg(“NOT)
Source§

fn strlen<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

fn hget<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, ) -> RedisResult<RV>

Gets a single (or multiple) fields from a hash.
Source§

fn hget_ex<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, expire_at: Expiry, ) -> RedisResult<RV>

Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs.arg(key).arg(expire_at).arg(“FIELDS)
Source§

fn hdel<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, ) -> RedisResult<RV>

Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

fn hget_del<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Get and delete the value of one or more fields of a given hash key Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hset<'a, K: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, value: V, ) -> RedisResult<RV>

Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

fn hset_ex<'a, K: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, hash_field_expiration_options: &'a HashFieldExpirationOptions, fields_values: &'a [(F, V)], ) -> RedisResult<RV>

Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs.arg(key).arg(hash_field_expiration_options).arg(“FIELDS)
Source§

fn hset_nx<'a, K: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, value: V, ) -> RedisResult<RV>

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: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, items: &'a [(F, V)], ) -> RedisResult<RV>

Sets multiple fields in a hash. Redis Docs
Source§

fn hincr<'a, K: ToRedisArgs, F: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, delta: D, ) -> RedisResult<RV>

Increments a value. Returns the new value of the field after incrementation.
Source§

fn hexists<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, field: F, ) -> RedisResult<RV>

Checks if a field in a hash exists. Redis Docs
Source§

fn httl<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Get one or more fields’ TTL in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hpttl<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Get one or more fields’ TTL in milliseconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hexpire<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, seconds: i64, opt: ExpireOption, fields: F, ) -> RedisResult<RV>

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.arg(key).arg(seconds).arg(opt).arg(“FIELDS)
Source§

fn hexpire_at<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisResult<RV>

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.arg(key).arg(ts).arg(opt).arg(“FIELDS)
Source§

fn hexpire_time<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Returns the absolute Unix expiration timestamp in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hpersist<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hpexpire<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, milliseconds: i64, opt: ExpireOption, fields: F, ) -> RedisResult<RV>

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.arg(key).arg(milliseconds).arg(opt).arg(“FIELDS)
Source§

fn hpexpire_at<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ts: i64, opt: ExpireOption, fields: F, ) -> RedisResult<RV>

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.arg(key).arg(ts).arg(opt).arg(“FIELDS)
Source§

fn hpexpire_time<'a, K: ToRedisArgs, F: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, fields: F, ) -> RedisResult<RV>

Returns the absolute Unix expiration timestamp in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

fn hkeys<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Gets all the keys in a hash. Redis Docs
Source§

fn hvals<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Gets all the values in a hash. Redis Docs
Source§

fn hgetall<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Gets all the fields and values in a hash. Redis Docs
Source§

fn hlen<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

fn blmove<'a, S: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, timeout: f64, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, timeout: f64, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisResult<RV>

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.arg(timeout).arg(numkeys).arg(key).arg(dir).arg(“COUNT)
Source§

fn blpop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, timeout: f64, ) -> RedisResult<RV>

Remove and get the first element in a list, or block until one is available. Redis Docs
Source§

fn brpop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, timeout: f64, ) -> RedisResult<RV>

Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

fn brpoplpush<'a, S: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, srckey: S, dstkey: D, timeout: f64, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, index: isize, ) -> RedisResult<RV>

Get an element from a list by its index. Redis Docs
Source§

fn linsert_before<'a, K: ToRedisArgs, P: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pivot: P, value: V, ) -> RedisResult<RV>

Insert an element before another element in a list. Redis Docs
Source§

fn linsert_after<'a, K: ToRedisArgs, P: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pivot: P, value: V, ) -> RedisResult<RV>

Insert an element after another element in a list. Redis Docs
Source§

fn llen<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the length of the list stored at key. Redis Docs
Source§

fn lmove<'a, S: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, srckey: S, dstkey: D, src_dir: Direction, dst_dir: Direction, ) -> RedisResult<RV>

Pop an element a list, push it to another list and return it Redis Docs
Source§

fn lmpop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, numkeys: usize, key: K, dir: Direction, count: usize, ) -> RedisResult<RV>

Pops count elements from the first non-empty list key from the list of provided key names. Redis Docs.arg(numkeys).arg(key).arg(dir).arg(“COUNT)
Source§

fn lpop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisResult<RV>

Removes and returns the up to count first elements of the list stored at key. Read more
Source§

fn lpos<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, options: LposOptions, ) -> RedisResult<RV>

Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

fn lpush<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

fn lpush_exists<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Returns the specified elements of the list stored at key. Redis Docs
Source§

fn lrem<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: isize, value: V, ) -> RedisResult<RV>

Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

fn ltrim<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

fn lset<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, index: isize, value: V, ) -> RedisResult<RV>

Sets the list element at index to value Redis Docs
Source§

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

Sends a ping to the server Redis Docs
Source§

fn ping_message<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, message: K, ) -> RedisResult<RV>

Sends a ping with a message to the server Redis Docs
Source§

fn rpop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: Option<NonZeroUsize>, ) -> RedisResult<RV>

Removes and returns the up to count last elements of the list stored at key Read more
Source§

fn rpoplpush<'a, K: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, dstkey: D, ) -> RedisResult<RV>

Pop a value from a list, push it to another list and return it. Redis Docs
Source§

fn rpush<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

fn rpush_exists<'a, K: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, value: V, ) -> RedisResult<RV>

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: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Add one or more members to a set. Redis Docs
Source§

fn scard<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get the number of members in a set. Redis Docs
Source§

fn sdiff<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, keys: K, ) -> RedisResult<RV>

Subtract multiple sets. Redis Docs
Source§

fn sdiffstore<'a, D: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

Subtract multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sinter<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, keys: K, ) -> RedisResult<RV>

Intersect multiple sets. Redis Docs
Source§

fn sinterstore<'a, D: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sismember<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Determine if a given value is a member of a set. Redis Docs
Source§

fn smismember<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: M, ) -> RedisResult<RV>

Determine if given values are members of a set. Redis Docs
Source§

fn smembers<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get all the members in a set. Redis Docs
Source§

fn smove<'a, S: ToRedisArgs, D: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, srckey: S, dstkey: D, member: M, ) -> RedisResult<RV>

Move a member from one set to another. Redis Docs
Source§

fn spop<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Remove and return a random member from a set. Redis Docs
Source§

fn srandmember<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get one random member from a set. Redis Docs
Source§

fn srandmember_multiple<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: usize, ) -> RedisResult<RV>

Get multiple random members from a set. Redis Docs
Source§

fn srem<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Remove one or more members from a set. Redis Docs
Source§

fn sunion<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, keys: K, ) -> RedisResult<RV>

Add multiple sets. Redis Docs
Source§

fn sunionstore<'a, D: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

Add multiple sets and store the resulting set in a key. Redis Docs
Source§

fn zadd<'a, K: ToRedisArgs, S: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, score: S, ) -> RedisResult<RV>

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple<'a, K: ToRedisArgs, S: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, items: &'a [(S, M)], ) -> RedisResult<RV>

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zcard<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Get the number of members in a sorted set. Redis Docs
Source§

fn zcount<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Count the members in a sorted set with scores within the given values. Redis Docs
Source§

fn zincr<'a, K: ToRedisArgs, M: ToRedisArgs, D: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, delta: D, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Count the number of members in a sorted set between a given lexicographical range. Redis Docs
Source§

fn bzpopmax<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, timeout: f64, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: isize, ) -> RedisResult<RV>

Removes and returns up to count members with the highest scores in a sorted set Redis Docs
Source§

fn bzpopmin<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, timeout: f64, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: isize, ) -> RedisResult<RV>

Removes and returns up to count members with the lowest scores in a sorted set Redis Docs
Source§

fn bzmpop_max<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, timeout: f64, keys: K, count: isize, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, keys: K, count: isize, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, timeout: f64, keys: K, count: isize, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, keys: K, count: isize, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: Option<isize>, ) -> RedisResult<RV>

Return up to count random members in a sorted set (or 1 if count == None) Redis Docs
Source§

fn zrandmember_withscores<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, count: isize, ) -> RedisResult<RV>

Return up to count random members in a sorted set with scores Redis Docs
Source§

fn zrange<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by index Redis Docs
Source§

fn zrange_withscores<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

fn zrangebylex<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrangebylex_limit<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrevrangebylex<'a, K: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, ) -> RedisResult<RV>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrevrangebylex_limit<'a, K: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrangebyscore<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrangebyscore_withscores<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrangebyscore_limit<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrangebyscore_limit_withscores<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrank<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Determine the index of a member in a sorted set. Redis Docs
Source§

fn zrem<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: M, ) -> RedisResult<RV>

Remove one or more members from a sorted set. Redis Docs
Source§

fn zrembylex<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

fn zremrangebyrank<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Remove all members in a sorted set within the given indexes. Redis Docs
Source§

fn zrembyscore<'a, K: ToRedisArgs, M: ToRedisArgs, MM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, min: M, max: MM, ) -> RedisResult<RV>

Remove all members in a sorted set within the given scores. Redis Docs
Source§

fn zrevrange<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

fn zrevrange_withscores<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: isize, stop: isize, ) -> RedisResult<RV>

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: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrevrangebyscore_withscores<'a, K: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrevrangebyscore_limit<'a, K: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrevrangebyscore_limit_withscores<'a, K: ToRedisArgs, MM: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<RV>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrevrank<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

fn zscore<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, ) -> RedisResult<RV>

Get the score associated with the given member in a sorted set. Redis Docs
Source§

fn zscore_multiple<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: &'a [M], ) -> RedisResult<RV>

Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

fn zunionstore<'a, D: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: K, ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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: ToRedisArgs, K: ToRedisArgs, W: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<RV>

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 pfadd<'a, K: ToRedisArgs, E: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, element: E, ) -> RedisResult<RV>

Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

fn pfcount<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

fn pfmerge<'a, D: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, dstkey: D, srckeys: S, ) -> RedisResult<RV>

Merge N different HyperLogLogs into a single one. Redis Docs
Source§

fn publish<'a, K: ToRedisArgs, E: ToRedisArgs, RV: FromRedisValue>( &mut self, channel: K, message: E, ) -> RedisResult<RV>

Posts a message to the given channel. Redis Docs
Source§

fn spublish<'a, K: ToRedisArgs, E: ToRedisArgs, RV: FromRedisValue>( &mut self, channel: K, message: E, ) -> RedisResult<RV>

Posts a message to the given sharded channel. Redis Docs
Source§

fn object_encoding<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the encoding of a key. Redis Docs
Source§

fn object_idletime<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the time in seconds since the last access of a key. Redis Docs
Source§

fn object_freq<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

fn object_refcount<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the reference count of a key. Redis Docs
Source§

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

Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

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

Returns the ID of the current connection. Redis Docs
Source§

fn client_setname<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, connection_name: K, ) -> RedisResult<RV>

Command assigns a name to the current connection. Redis Docs
Source§

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

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: FromRedisValue>(&mut self) -> RedisResult<RV>

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: FromRedisValue>(&mut self) -> RedisResult<RV>

Shows the currently active ACL rules in the Redis server. Redis Docs
Source§

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

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: ToRedisArgs, RV: FromRedisValue>( &mut self, username: K, ) -> RedisResult<RV>

Returns all the rules defined for an existing ACL user. Redis Docs
Source§

fn acl_setuser<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, username: K, ) -> RedisResult<RV>

Creates an ACL user without any privilege. Redis Docs
Source§

fn acl_setuser_rules<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, username: K, rules: &'a [Rule], ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, usernames: &'a [K], ) -> RedisResult<RV>

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: ToRedisArgs, C: ToRedisArgs, A: ToRedisArgs, RV: FromRedisValue>( &mut self, username: K, command: C, args: A, ) -> RedisResult<RV>

Simulate the execution of a given command by a given user. Redis Docs
Source§

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

Shows the available ACL categories. Redis Docs
Source§

fn acl_cat_categoryname<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, categoryname: K, ) -> RedisResult<RV>

Shows all the Redis commands in the specified category. Redis Docs
Source§

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

Generates a 256-bits password starting from /dev/urandom if available. Redis Docs
Source§

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

Generates a 1-to-1024-bits password starting from /dev/urandom if available. Redis Docs
Source§

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

Returns the username the current connection is authenticated with. Redis Docs
Source§

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

Shows a list of recent ACL security events Redis Docs
Source§

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

Clears the ACL log. Redis Docs
Source§

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

Returns a helpful text describing the different subcommands. Redis Docs
Source§

fn geo_add<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: M, ) -> RedisResult<RV>

Adds the specified geospatial items to the specified key. Read more
Source§

fn geo_dist<'a, K: ToRedisArgs, M1: ToRedisArgs, M2: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member1: M1, member2: M2, unit: Unit, ) -> RedisResult<RV>

Return the distance between two members in the geospatial index represented by the sorted set. Read more
Source§

fn geo_hash<'a, K: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: M, ) -> RedisResult<RV>

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: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, members: M, ) -> RedisResult<RV>

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: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, longitude: f64, latitude: f64, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisResult<RV>

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: ToRedisArgs, M: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, member: M, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisResult<RV>

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, G: ToRedisArgs, I: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, ids: &'a [I], ) -> RedisResult<RV>

Ack pending stream messages checked out by a consumer. Read more
Source§

fn xadd<'a, K: ToRedisArgs, ID: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, id: ID, items: &'a [(F, V)], ) -> RedisResult<RV>

Add a stream message by key. Use * as the id for the current timestamp. Read more
Source§

fn xadd_map<'a, K: ToRedisArgs, ID: ToRedisArgs, BTM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, id: ID, map: BTM, ) -> RedisResult<RV>

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, ID: ToRedisArgs, I: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, id: ID, items: I, options: &'a StreamAddOptions, ) -> RedisResult<RV>

Add a stream message with options. Read more
Source§

fn xadd_maxlen<'a, K: ToRedisArgs, ID: ToRedisArgs, F: ToRedisArgs, V: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, maxlen: StreamMaxlen, id: ID, items: &'a [(F, V)], ) -> RedisResult<RV>

Add a stream message while capping the stream at a maxlength. Read more
Source§

fn xadd_maxlen_map<'a, K: ToRedisArgs, ID: ToRedisArgs, BTM: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, maxlen: StreamMaxlen, id: ID, map: BTM, ) -> RedisResult<RV>

BTreeMap variant for adding a stream message while capping the stream at a maxlength. Read more
Source§

fn xautoclaim_options<'a, K: ToRedisArgs, G: ToRedisArgs, C: ToRedisArgs, MIT: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, consumer: C, min_idle_time: MIT, start: S, options: StreamAutoClaimOptions, ) -> RedisResult<RV>

Perform a combined xpending and xclaim flow. Read more
Source§

fn xclaim<'a, K: ToRedisArgs, G: ToRedisArgs, C: ToRedisArgs, MIT: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], ) -> RedisResult<RV>

Claim pending, unacked messages, after some period of time, currently checked out by another consumer. Read more
Source§

fn xclaim_options<'a, K: ToRedisArgs, G: ToRedisArgs, C: ToRedisArgs, MIT: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, consumer: C, min_idle_time: MIT, ids: &'a [ID], options: StreamClaimOptions, ) -> RedisResult<RV>

This is the optional arguments version for claiming unacked, pending messages currently checked out by another consumer. Read more
Source§

fn xdel<'a, K: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ids: &'a [ID], ) -> RedisResult<RV>

Deletes a list of ids for a given stream key. Read more
Source§

fn xgroup_create<'a, K: ToRedisArgs, G: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, id: ID, ) -> RedisResult<RV>

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, G: ToRedisArgs, C: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, consumer: C, ) -> RedisResult<RV>

This creates a consumer explicitly (vs implicit via XREADGROUP) for given stream `key. Read more
Source§

fn xgroup_create_mkstream<'a, K: ToRedisArgs, G: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, id: ID, ) -> RedisResult<RV>

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, G: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, id: ID, ) -> RedisResult<RV>

Alter which id you want consumers to begin reading from an existing consumer group. Read more
Source§

fn xgroup_destroy<'a, K: ToRedisArgs, G: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, ) -> RedisResult<RV>

Destroy an existing consumer group for a given stream key Read more
Source§

fn xgroup_delconsumer<'a, K: ToRedisArgs, G: ToRedisArgs, C: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, consumer: C, ) -> RedisResult<RV>

This deletes a consumer from an existing consumer group for given stream `key. Read more
Source§

fn xinfo_consumers<'a, K: ToRedisArgs, G: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns all consumer groups created for a given stream key. Take note of the StreamInfoGroupsReply return type. Read more
Source§

fn xinfo_stream<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

Returns the number of messages for a given stream key. Read more
Source§

fn xpending<'a, K: ToRedisArgs, G: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, ) -> RedisResult<RV>

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, G: ToRedisArgs, S: ToRedisArgs, E: ToRedisArgs, C: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, start: S, end: E, count: C, ) -> RedisResult<RV>

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, G: ToRedisArgs, S: ToRedisArgs, E: ToRedisArgs, C: ToRedisArgs, CN: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, group: G, start: S, end: E, count: C, consumer: CN, ) -> RedisResult<RV>

An alternate version of xpending_count which filters by consumer name. Read more
Source§

fn xrange<'a, K: ToRedisArgs, S: ToRedisArgs, E: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: S, end: E, ) -> RedisResult<RV>

Returns a range of messages in a given stream key. Read more
Source§

fn xrange_all<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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, S: ToRedisArgs, E: ToRedisArgs, C: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, start: S, end: E, count: C, ) -> RedisResult<RV>

A method for paginating a stream by key. Read more
Source§

fn xread<'a, K: ToRedisArgs, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, keys: &'a [K], ids: &'a [ID], ) -> RedisResult<RV>

Read a list of ids 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, ID: ToRedisArgs, RV: FromRedisValue>( &mut self, keys: &'a [K], ids: &'a [ID], options: &'a StreamReadOptions, ) -> RedisResult<RV>

This method handles setting optional arguments for XREAD or XREADGROUP Redis commands. Read more
Source§

fn xrevrange<'a, K: ToRedisArgs, E: ToRedisArgs, S: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, end: E, start: S, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<RV>

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, E: ToRedisArgs, S: ToRedisArgs, C: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, end: E, start: S, count: C, ) -> RedisResult<RV>

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, RV: FromRedisValue>( &mut self, key: K, maxlen: StreamMaxlen, ) -> RedisResult<RV>

Trim a stream key to a MAXLEN count. Read more
Source§

fn xtrim_options<'a, K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, options: &'a StreamTrimOptions, ) -> RedisResult<RV>

Trim a stream key with full options Read more
Source§

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

Adds a prepared script command to the pipeline. Read more
Source§

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

Deletes all the keys of all databases Read more
Source§

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

Deletes all the keys of all databases with options Read more
Source§

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

Deletes all the keys of the current database Read more
Source§

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

Deletes all the keys of the current database with options Read more
Source§

fn scan<RV: FromRedisValue>(&mut self) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space.
Source§

fn scan_options<RV: FromRedisValue>( &mut self, opts: ScanOptions, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space with options.
Source§

fn scan_match<P: ToRedisArgs, RV: FromRedisValue>( &mut self, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space for keys matching a pattern.
Source§

fn hscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate hash fields and associated values.
Source§

fn hscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

fn sscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate set elements.
Source§

fn sscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate set elements for elements matching a pattern.
Source§

fn zscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate sorted set elements.
Source§

fn zscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate sorted set elements for elements matching a pattern.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. 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.
Source§

impl<T> TypedCommands for T
where T: ConnectionLike,

Source§

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

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, ) -> RedisResult<Vec<Option<String>>>

Get values of keys Redis Docs
Source§

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

Gets all keys matching pattern Redis Docs
Source§

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

Set the string value of a key. Redis Docs
Source§

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

Set the string value of a key with options. Redis Docs
Source§

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

👎Deprecated since 0.22.4: Renamed to mset() to reflect Redis name
Sets multiple keys to their values. Redis Docs
Source§

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

Sets multiple keys to their values. Redis Docs
Source§

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

Set the value and expiration of a key. Redis Docs
Source§

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

Set the value and expiration in milliseconds of a key. Redis Docs
Source§

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

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)], ) -> RedisResult<bool>

Sets multiple keys to their values failing if at least one already exists. Redis Docs
Source§

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

Set the string value of a key and return its old value. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, offset: isize, value: V, ) -> RedisResult<usize>

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, ) -> RedisResult<usize>

Delete one or more keys. Returns the number of keys deleted. Redis Docs
Source§

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

Determine if a key exists. Redis Docs
Source§

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

Determine the type of key. Redis Docs
Source§

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

Set a key’s time to live in seconds. Returns whether expiration was set. Redis Docs
Source§

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

Set the expiration for a key as a UNIX timestamp. Returns whether expiration was set. Redis Docs
Source§

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

Set a key’s time to live in milliseconds. Returns whether expiration was set. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<IntegerReplyOrNoOp>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<IntegerReplyOrNoOp>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<bool>

Remove the expiration from a key. Returns whether a timeout was removed. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<IntegerReplyOrNoOp>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, expire_at: Expiry, ) -> RedisResult<Option<String>>

Get the value of a key and set expiration Redis Docs
Source§

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

Get the value of a key and delete it Redis Docs
Source§

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

Copy the value from one key to another, returning whether the copy was successful. Redis Docs
Source§

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

Rename a key. Errors if key does not exist. Redis Docs
Source§

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

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
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: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, value: V, ) -> RedisResult<usize>

Append a value to a key. Returns length of string after operation. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, delta: V, ) -> RedisResult<isize>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, offset: usize, value: bool, ) -> RedisResult<bool>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, offset: usize, ) -> RedisResult<bool>

Returns the bit value at offset in the string value stored at key. Redis Docs
Source§

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

Count set bits in a string. Returns 0 if key does not exist. Redis Docs
Source§

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

Count set bits in a string in a range. Returns 0 if key does not exist. Redis Docs
Source§

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

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.arg(“AND)
Source§

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

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.arg(“OR)
Source§

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

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.arg(“XOR)
Source§

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

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.arg(“NOT)
Source§

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

Get the length of the value stored in a key. 0 if key does not exist. Redis Docs
Source§

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

Gets a single (or multiple) fields from a hash.
Source§

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

Get the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs.arg(key).arg(expire_at).arg(“FIELDS)
Source§

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

Deletes a single (or multiple) fields from a hash. Returns number of fields deleted. Redis Docs
Source§

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

Get and delete the value of one or more fields of a given hash key Redis Docs.arg(key).arg(“FIELDS)
Source§

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

Sets a single field in a hash. Returns number of fields added. Redis Docs
Source§

fn hset_ex<'a, K: ToRedisArgs + 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)], ) -> RedisResult<bool>

Set the value of one or more fields of a given hash key, and optionally set their expiration Redis Docs.arg(key).arg(hash_field_expiration_options).arg(“FIELDS)
Source§

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

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: ToRedisArgs + Send + Sync + 'a, F: ToRedisArgs + Send + Sync + 'a, V: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, items: &'a [(F, V)], ) -> RedisResult<()>

Sets multiple fields in a hash. Redis Docs
Source§

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

Increments a value. Returns the new value of the field after incrementation.
Source§

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

Checks if a field in a hash exists. Redis Docs
Source§

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

Get one or more fields’ TTL in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

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

Get one or more fields’ TTL in milliseconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

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

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.arg(key).arg(seconds).arg(opt).arg(“FIELDS)
Source§

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

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.arg(key).arg(ts).arg(opt).arg(“FIELDS)
Source§

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

Returns the absolute Unix expiration timestamp in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

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

Remove the expiration from a key. Returns 1 if the expiration was removed. Redis Docs.arg(key).arg(“FIELDS)
Source§

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

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.arg(key).arg(milliseconds).arg(opt).arg(“FIELDS)
Source§

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

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.arg(key).arg(ts).arg(opt).arg(“FIELDS)
Source§

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

Returns the absolute Unix expiration timestamp in seconds. Redis Docs.arg(key).arg(“FIELDS)
Source§

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

Gets all the keys in a hash. Redis Docs
Source§

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

Gets all the values in a hash. Redis Docs
Source§

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

Gets all the fields and values in a hash. Redis Docs
Source§

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

Gets the length of a hash. Returns 0 if key does not exist. Redis Docs
Source§

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

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, ) -> RedisResult<Option<[String; 2]>>

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.arg(timeout).arg(numkeys).arg(key).arg(dir).arg(“COUNT)
Source§

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

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, ) -> RedisResult<Option<[String; 2]>>

Remove and get the last element in a list, or block until one is available. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, index: isize, ) -> RedisResult<Option<String>>

Get an element from a list by its index. Redis Docs
Source§

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

Insert an element before another element in a list. Redis Docs
Source§

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

Insert an element after another element in a list. Redis Docs
Source§

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

Returns the length of the list stored at key. Redis Docs
Source§

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

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, ) -> RedisResult<Option<(String, Vec<String>)>>

Pops count elements from the first non-empty list key from the list of provided key names. Redis Docs.arg(numkeys).arg(key).arg(dir).arg(“COUNT)
Source§

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

Removes and returns the up to count first elements of the list stored at key. Read more
Source§

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

Returns the index of the first matching value of the list stored at key. Redis Docs
Source§

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

Insert all the specified values at the head of the list stored at key. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<Vec<String>>

Returns the specified elements of the list stored at key. Redis Docs
Source§

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

Removes the first count occurrences of elements equal to value from the list stored at key. Redis Docs
Source§

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

Trim an existing list so that it will contain only the specified range of elements specified. Redis Docs
Source§

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

Sets the list element at index to value Redis Docs
Source§

fn ping<'a>(&'a mut self) -> RedisResult<String>

Sends a ping to the server Redis Docs
Source§

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

Sends a ping with a message to the server Redis Docs
Source§

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

Removes and returns the up to count last elements of the list stored at key Read more
Source§

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

Pop a value from a list, push it to another list and return it. Redis Docs
Source§

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

Insert all the specified values at the tail of the list stored at key. Redis Docs
Source§

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

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: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<usize>

Add one or more members to a set. Redis Docs
Source§

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

Get the number of members in a set. Redis Docs
Source§

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

Subtract multiple sets. Redis Docs
Source§

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

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, ) -> RedisResult<HashSet<String>>

Intersect multiple sets. Redis Docs
Source§

fn sinterstore<'a, D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

Intersect multiple sets and store the resulting set in a key. Redis Docs
Source§

fn sismember<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<bool>

Determine if a given value is a member of a set. Redis Docs
Source§

fn smismember<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisResult<Vec<bool>>

Determine if given values are members of a set. Redis Docs
Source§

fn smembers<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<HashSet<String>>

Get all the members in a set. Redis Docs
Source§

fn smove<'a, S: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, srckey: S, dstkey: D, member: M, ) -> RedisResult<bool>

Move a member from one set to another. Redis Docs
Source§

fn spop<'a, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<RV>

Remove and return a random member from a set. Redis Docs
Source§

fn srandmember<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<Option<String>>

Get one random member from a set. Redis Docs
Source§

fn srandmember_multiple<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: usize, ) -> RedisResult<Vec<String>>

Get multiple random members from a set. Redis Docs
Source§

fn srem<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<usize>

Remove one or more members from a set. Redis Docs
Source§

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

Add multiple sets. Redis Docs
Source§

fn sunionstore<'a, D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

Add multiple sets and store the resulting set in a key. Redis Docs
Source§

fn zadd<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, score: S, ) -> RedisResult<usize>

Add one member to a sorted set, or update its score if it already exists. Redis Docs
Source§

fn zadd_multiple<'a, K: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, items: &'a [(S, M)], ) -> RedisResult<usize>

Add multiple members to a sorted set, or update its score if it already exists. Redis Docs
Source§

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

Get the number of members in a sorted set. Redis Docs
Source§

fn zcount<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<usize>

Count the members in a sorted set with scores within the given values. Redis Docs
Source§

fn zincr<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, D: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, delta: D, ) -> RedisResult<f64>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<usize>

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, ) -> RedisResult<Option<(String, String, f64)>>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisResult<Vec<String>>

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, ) -> RedisResult<Option<(String, String, f64)>>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisResult<Vec<String>>

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, ) -> RedisResult<Option<(String, Vec<(String, f64)>)>>

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, ) -> RedisResult<Option<(String, Vec<(String, f64)>)>>

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, ) -> RedisResult<Option<(String, Vec<(String, f64)>)>>

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, ) -> RedisResult<Option<(String, Vec<(String, f64)>)>>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: Option<isize>, ) -> RedisResult<RV>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, count: isize, ) -> RedisResult<RV>

Return up to count random members in a sorted set with scores Redis Docs
Source§

fn zrange<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by index Redis Docs
Source§

fn zrange_withscores<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<Vec<(String, f64)>>

Return a range of members in a sorted set, by index with scores. Redis Docs
Source§

fn zrangebylex<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrangebylex_limit<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrevrangebylex<'a, K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by lexicographical range. Redis Docs
Source§

fn zrevrangebylex_limit<'a, K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by lexicographical range with offset and limit. Redis Docs
Source§

fn zrangebyscore<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrangebyscore_withscores<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<Vec<(String, usize)>>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrangebyscore_limit<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrangebyscore_limit_withscores<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, offset: isize, count: isize, ) -> RedisResult<Vec<(String, usize)>>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrank<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<Option<usize>>

Determine the index of a member in a sorted set. Redis Docs
Source§

fn zrem<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisResult<usize>

Remove one or more members from a sorted set. Redis Docs
Source§

fn zrembylex<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<usize>

Remove all members in a sorted set between the given lexicographical range. Redis Docs
Source§

fn zremrangebyrank<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<usize>

Remove all members in a sorted set within the given indexes. Redis Docs
Source§

fn zrembyscore<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, min: M, max: MM, ) -> RedisResult<usize>

Remove all members in a sorted set within the given scores. Redis Docs
Source§

fn zrevrange<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by index, ordered from high to low. Redis Docs
Source§

fn zrevrange_withscores<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, start: isize, stop: isize, ) -> RedisResult<Vec<String>>

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: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score. Redis Docs
Source§

fn zrevrangebyscore_withscores<'a, K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score with scores. Redis Docs
Source§

fn zrevrangebyscore_limit<'a, K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score with limit. Redis Docs
Source§

fn zrevrangebyscore_limit_withscores<'a, K: ToRedisArgs + Send + Sync + 'a, MM: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, max: MM, min: M, offset: isize, count: isize, ) -> RedisResult<Vec<String>>

Return a range of members in a sorted set, by score with limit with scores. Redis Docs
Source§

fn zrevrank<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<Option<usize>>

Determine the index of a member in a sorted set, with scores ordered from high to low. Redis Docs
Source§

fn zscore<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, ) -> RedisResult<Option<f64>>

Get the score associated with the given member in a sorted set. Redis Docs
Source§

fn zscore_multiple<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: &'a [M], ) -> RedisResult<Option<Vec<f64>>>

Get the scores associated with multiple members in a sorted set. Redis Docs
Source§

fn zunionstore<'a, D: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: K, ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, K: ToRedisArgs + Send + Sync + 'a, W: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, keys: &'a [(K, W)], ) -> RedisResult<usize>

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 pfadd<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, element: E, ) -> RedisResult<bool>

Adds the specified elements to the specified HyperLogLog. Redis Docs
Source§

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

Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Redis Docs
Source§

fn pfmerge<'a, D: ToRedisArgs + Send + Sync + 'a, S: ToRedisArgs + Send + Sync + 'a>( &'a mut self, dstkey: D, srckeys: S, ) -> RedisResult<()>

Merge N different HyperLogLogs into a single one. Redis Docs
Source§

fn publish<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, channel: K, message: E, ) -> RedisResult<usize>

Posts a message to the given channel. Redis Docs
Source§

fn spublish<'a, K: ToRedisArgs + Send + Sync + 'a, E: ToRedisArgs + Send + Sync + 'a>( &'a mut self, channel: K, message: E, ) -> RedisResult<usize>

Posts a message to the given sharded channel. Redis Docs
Source§

fn object_encoding<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<Option<String>>

Returns the encoding of a key. Redis Docs
Source§

fn object_idletime<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<Option<usize>>

Returns the time in seconds since the last access of a key. Redis Docs
Source§

fn object_freq<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<Option<usize>>

Returns the logarithmic access frequency counter of a key. Redis Docs
Source§

fn object_refcount<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ) -> RedisResult<Option<usize>>

Returns the reference count of a key. Redis Docs
Source§

fn client_getname<'a>(&'a mut self) -> RedisResult<Option<String>>

Returns the name of the current connection as set by CLIENT SETNAME. Redis Docs
Source§

fn client_id<'a>(&'a mut self) -> RedisResult<isize>

Returns the ID of the current connection. Redis Docs
Source§

fn client_setname<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, connection_name: K, ) -> RedisResult<()>

Command assigns a name to the current connection. Redis Docs
Source§

fn acl_load<'a>(&'a mut self) -> RedisResult<()>

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) -> RedisResult<()>

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) -> RedisResult<Vec<String>>

Shows the currently active ACL rules in the Redis server. Redis Docs
Source§

fn acl_users<'a>(&'a mut self) -> RedisResult<Vec<String>>

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: ToRedisArgs + Send + Sync + 'a>( &'a mut self, username: K, ) -> RedisResult<Option<HashMap<String, Value>>>

Returns all the rules defined for an existing ACL user. Redis Docs
Source§

fn acl_setuser<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, username: K, ) -> RedisResult<()>

Creates an ACL user without any privilege. Redis Docs
Source§

fn acl_setuser_rules<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, username: K, rules: &'a [Rule], ) -> RedisResult<()>

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], ) -> RedisResult<usize>

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: ToRedisArgs + Send + Sync + 'a, C: ToRedisArgs + Send + Sync + 'a, A: ToRedisArgs + Send + Sync + 'a>( &'a mut self, username: K, command: C, args: A, ) -> RedisResult<String>

Simulate the execution of a given command by a given user. Redis Docs
Source§

fn acl_cat<'a>(&'a mut self) -> RedisResult<Vec<String>>

Shows the available ACL categories. Redis Docs
Source§

fn acl_cat_categoryname<'a, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, categoryname: K, ) -> RedisResult<Vec<String>>

Shows all the Redis commands in the specified category. Redis Docs
Source§

fn acl_genpass<'a>(&'a mut self) -> RedisResult<String>

Generates a 256-bits password starting from /dev/urandom if available. Redis Docs
Source§

fn acl_genpass_bits<'a>(&'a mut self, bits: isize) -> RedisResult<String>

Generates a 1-to-1024-bits password starting from /dev/urandom if available. Redis Docs
Source§

fn acl_whoami<'a>(&'a mut self) -> RedisResult<String>

Returns the username the current connection is authenticated with. Redis Docs
Source§

fn acl_log<'a>(&'a mut self, count: isize) -> RedisResult<Vec<String>>

Shows a list of recent ACL security events Redis Docs
Source§

fn acl_log_reset<'a>(&'a mut self) -> RedisResult<()>

Clears the ACL log. Redis Docs
Source§

fn acl_help<'a>(&'a mut self) -> RedisResult<String>

Returns a helpful text describing the different subcommands. Redis Docs
Source§

fn geo_add<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisResult<usize>

Adds the specified geospatial items to the specified key. Read more
Source§

fn geo_dist<'a, K: ToRedisArgs + Send + Sync + 'a, M1: ToRedisArgs + Send + Sync + 'a, M2: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member1: M1, member2: M2, unit: Unit, ) -> RedisResult<Option<String>>

Return the distance between two members in the geospatial index represented by the sorted set. Read more
Source§

fn geo_hash<'a, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisResult<Vec<String>>

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: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, members: M, ) -> RedisResult<Vec<Option<(f64, f64)>>>

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, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, longitude: f64, latitude: f64, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisResult<RV>

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, RV: FromRedisValue, K: ToRedisArgs + Send + Sync + 'a, M: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, member: M, radius: f64, unit: Unit, options: RadiusOptions, ) -> RedisResult<RV>

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], ) -> RedisResult<usize>

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)], ) -> RedisResult<Option<String>>

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, ) -> RedisResult<Option<String>>

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, ) -> RedisResult<Option<String>>

Add a stream message with options. Read more
Source§

fn xadd_maxlen<'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, maxlen: StreamMaxlen, id: ID, items: &'a [(F, V)], ) -> RedisResult<Option<String>>

Add a stream message while capping the stream at a maxlength. Read more
Source§

fn xadd_maxlen_map<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a, BTM: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, maxlen: StreamMaxlen, id: ID, map: BTM, ) -> RedisResult<Option<String>>

BTreeMap variant for adding a stream message while capping the stream at a maxlength. Read more
Source§

fn xautoclaim_options<'a, K: ToRedisArgs + 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, ) -> RedisResult<(String, Vec<String>, Vec<String>)>

Perform a combined xpending and xclaim flow. Read more
Source§

fn xclaim<'a, K: ToRedisArgs + 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], ) -> RedisResult<Vec<(String, Value)>>

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: ToRedisArgs + 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, ) -> RedisResult<RV>

This is the optional arguments version for claiming unacked, pending messages currently checked out by another consumer. Read more
Source§

fn xdel<'a, K: ToRedisArgs + Send + Sync + 'a, ID: ToRedisArgs + Send + Sync + 'a>( &'a mut self, key: K, ids: &'a [ID], ) -> RedisResult<usize>

Deletes a list of ids for a given stream key. Read more
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, ) -> RedisResult<()>

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, ) -> RedisResult<bool>

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, ) -> RedisResult<()>

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, ) -> RedisResult<()>

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, ) -> RedisResult<bool>

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, ) -> RedisResult<usize>

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, ) -> RedisResult<Vec<HashMap<String, Value>>>

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, ) -> RedisResult<Vec<HashMap<String, Value>>>

Returns all consumer groups created for a given stream key. Take note of the StreamInfoGroupsReply return type. Read more
Source§

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

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, ) -> RedisResult<usize>

Returns the number of messages for a given stream key. Read more
Source§

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

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, RV: FromRedisValue, 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, ) -> RedisResult<RV>

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, RV: FromRedisValue, 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, ) -> RedisResult<RV>

An alternate version of xpending_count which filters by consumer name. Read more
Source§

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

Returns a range of messages in a given stream key. Read more
Source§

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

A helper method for automatically returning all messages in a stream by key. Use with caution! Read more
Source§

fn xrange_count<'a, RV: FromRedisValue, 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, ) -> RedisResult<RV>

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], ) -> RedisResult<Option<HashMap<String, Value>>>

Read a list of ids 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, ) -> RedisResult<Option<HashMap<String, Value>>>

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, ) -> RedisResult<Vec<Value>>

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, ) -> RedisResult<Vec<Value>>

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, ) -> RedisResult<Vec<Value>>

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, ) -> RedisResult<usize>

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, ) -> RedisResult<usize>

Trim a stream key with full options Read more
Source§

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

Adds a prepared script command to the pipeline. Read more
Source§

fn flushall<'a>(&'a mut self) -> RedisResult<()>

Deletes all the keys of all databases Read more
Source§

fn flushall_options<'a>( &'a mut self, options: &'a FlushAllOptions, ) -> RedisResult<()>

Deletes all the keys of all databases with options Read more
Source§

fn flushdb<'a>(&'a mut self) -> RedisResult<()>

Deletes all the keys of the current database Read more
Source§

fn flushdb_options<'a>( &'a mut self, options: &'a FlushDbOptions, ) -> RedisResult<()>

Deletes all the keys of the current database with options Read more
Source§

fn scan<RV: FromRedisValue>(&mut self) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space.
Source§

fn scan_options<RV: FromRedisValue>( &mut self, opts: ScanOptions, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space with options.
Source§

fn scan_match<P: ToRedisArgs, RV: FromRedisValue>( &mut self, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate the keys space for keys matching a pattern.
Source§

fn hscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate hash fields and associated values.
Source§

fn hscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate hash fields and associated values for field names matching a pattern.
Source§

fn sscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate set elements.
Source§

fn sscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate set elements for elements matching a pattern.
Source§

fn zscan<K: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate sorted set elements.
Source§

fn zscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>( &mut self, key: K, pattern: P, ) -> RedisResult<Iter<'_, RV>>

Incrementally iterate sorted set elements for elements matching a pattern.
Source§

fn get_int<K: ToRedisArgs>(&mut self, key: K) -> RedisResult<Option<isize>>

Get a value from Redis and convert it to an Option<isize>.
Source§

fn mget_ints<K: ToRedisArgs>( &mut self, key: K, ) -> RedisResult<Vec<Option<isize>>>

Get values from Redis and convert them to Option<isize>s.
Source§

impl<T> ErasedDestructor for T
where T: 'static,