Struct redis_driver::Transaction
source · pub struct Transaction { /* private fields */ }
Expand description
Represents an on-going transaction
on a specific client instance.
Implementations
Trait Implementations
sourceimpl BitmapCommands for Transaction
impl BitmapCommands for Transaction
sourcefn bitcount<K>(
&mut self,
key: K,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn bitcount<K>(
&mut self,
key: K,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Count the number of set bits (population counting) in a string. Read more
sourcefn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
O: Into<BulkString>,
C: ArgsOrCollection<BitFieldSubCommand<E, O>>,
fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
O: Into<BulkString>,
C: ArgsOrCollection<BitFieldSubCommand<E, O>>,
The command treats a Redis string as an array of bits,
and is capable of addressing specific integer fields
of varying bit widths and arbitrary non (necessary) aligned offset. Read more
sourcefn bitfield_readonly<K, C, E, O>(
&mut self,
key: K,
get_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
O: Into<BulkString>,
C: ArgsOrCollection<BitFieldGetSubCommand<E, O>>,
fn bitfield_readonly<K, C, E, O>(
&mut self,
key: K,
get_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
O: Into<BulkString>,
C: ArgsOrCollection<BitFieldGetSubCommand<E, O>>,
Read-only variant of the BITFIELD command.
It is like the original BITFIELD but only accepts GET subcommand
and can safely be used in read-only replicas. Read more
sourcefn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
fn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
Perform a bitwise operation between multiple keys (containing string values)
and store the result in the destination key. Read more
sourcefn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Perform a bitwise operation between multiple keys (containing string values)
and store the result in the destination key. Read more
sourcefn getbit<K>(&mut self, key: K, offset: u64) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
K: Into<BulkString>,
fn getbit<K>(&mut self, key: K, offset: u64) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
K: Into<BulkString>,
Returns the bit value at offset in the string value stored at key. Read more
sourcefn setbit<K>(
&mut self,
key: K,
offset: u64,
value: u64
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
K: Into<BulkString>,
fn setbit<K>(
&mut self,
key: K,
offset: u64,
value: u64
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
K: Into<BulkString>,
Sets or clears the bit at offset in the string value stored at key. Read more
sourceimpl GenericCommands for Transaction
impl GenericCommands for Transaction
sourcefn copy<S, D>(
&mut self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
fn copy<S, D>(
&mut self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
This command copies the value stored at the source key to the destination key. Read more
sourcefn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
Removes the specified keys. A key is ignored if it does not exist. Read more
sourcefn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>where
Self: Sized,
K: Into<BulkString>,
fn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>where
Self: Sized,
K: Into<BulkString>,
Serialize the value stored at key in a Redis-specific format and return it to the user. Read more
sourcefn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
Returns if keys exist. Read more
sourcefn expire<K>(
&mut self,
key: K,
seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
fn expire<K>(
&mut self,
key: K,
seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
Set a timeout on key in seconds Read more
sourcefn expireat<K>(
&mut self,
key: K,
unix_time_seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
fn expireat<K>(
&mut self,
key: K,
unix_time_seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
EXPIREAT has the same effect and semantic as EXPIRE,
but instead of specifying the number of seconds representing the TTL (time to live),
it takes an absolute Unix timestamp (seconds since January 1, 1970) Read more
sourcefn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Returns the absolute Unix timestamp (since January 1, 1970) in seconds at which the given key will expire. Read more
sourcefn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>where
Self: Sized,
P: Into<BulkString>,
K: FromValue,
A: FromSingleValueArray<K>,
fn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>where
Self: Sized,
P: Into<BulkString>,
K: FromValue,
A: FromSingleValueArray<K>,
Returns all keys matching pattern. Read more
sourcefn migrate<H, K>(
&mut self,
host: H,
port: u16,
key: K,
destination_db: usize,
timeout: u64,
options: MigrateOptions
) -> PreparedCommand<'_, Self, MigrateResult>where
Self: Sized,
H: Into<BulkString>,
K: Into<BulkString>,
fn migrate<H, K>(
&mut self,
host: H,
port: u16,
key: K,
destination_db: usize,
timeout: u64,
options: MigrateOptions
) -> PreparedCommand<'_, Self, MigrateResult>where
Self: Sized,
H: Into<BulkString>,
K: Into<BulkString>,
Atomically transfer a key or a collection of keys from a source Redis instance to a destination Redis instance. Read more
sourcefn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Move key from the currently selected database to the specified destination database. Read more
sourcefn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
fn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
Returns the internal encoding for the Redis object stored at
key
Read moresourcefn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
This command returns the logarithmic access frequency counter of a Redis object stored at
key
. Read moresourcefn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
This command returns the time in seconds since the last access to the value stored at
key
. Read moresourcefn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
This command returns the reference count of the stored at
key
. Read moresourcefn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
fn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
Remove the existing timeout on key,
turning the key from volatile (a key with an expire set)
to persistent (a key that will never expire as no timeout is associated). Read more
sourcefn pexpire<K>(
&mut self,
key: K,
milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
fn pexpire<K>(
&mut self,
key: K,
milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
This command works exactly like EXPIRE but the time to live of the key is specified in milliseconds instead of seconds. Read more
sourcefn pexpireat<K>(
&mut self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
fn pexpireat<K>(
&mut self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
PEXPIREAT has the same effect and semantic as EXPIREAT,
but the Unix time at which the key will expire is specified in milliseconds instead of seconds. Read more
sourcefn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
PEXPIRETIME has the same semantic as EXPIRETIME,
but returns the absolute Unix expiration timestamp in milliseconds instead of seconds. Read more
sourcefn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Returns the remaining time to live of a key that has a timeout. Read more
sourcefn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
Return a random key from the currently selected database. Read more
sourcefn rename<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K1: Into<BulkString>,
K2: Into<BulkString>,
fn rename<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K1: Into<BulkString>,
K2: Into<BulkString>,
Renames key to newkey. Read more
sourcefn renamenx<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K1: Into<BulkString>,
K2: Into<BulkString>,
fn renamenx<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K1: Into<BulkString>,
K2: Into<BulkString>,
Renames key to newkey if newkey does not yet exist.
It returns an error when key does not exist. Read more
sourcefn restore<K>(
&mut self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
fn restore<K>(
&mut self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
Create a key associated with a value that is obtained by deserializing
the provided serialized value (obtained via DUMP). Read more
sourcefn scan<K, A>(
&mut self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'_, Self, (u64, A)>where
Self: Sized,
K: FromValue,
A: FromSingleValueArray<K>,
fn scan<K, A>(
&mut self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'_, Self, (u64, A)>where
Self: Sized,
K: FromValue,
A: FromSingleValueArray<K>,
Iterates the set of keys in the currently selected Redis database. Read more
sourcefn sort<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
A: FromSingleValueArray<M>,
fn sort<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
A: FromSingleValueArray<M>,
Returns the elements contained in the list, set or sorted set at key. Read more
sourcefn sort_and_store<K, D>(
&mut self,
key: K,
destination: D,
options: SortOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
D: Into<BulkString>,
fn sort_and_store<K, D>(
&mut self,
key: K,
destination: D,
options: SortOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
D: Into<BulkString>,
Stores the elements contained in the list, set or sorted set at key. Read more
sourcefn sort_readonly<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
A: FromSingleValueArray<M>,
fn sort_readonly<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
A: FromSingleValueArray<M>,
Read-only variant of the SORT command. Read more
sourcefn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
fn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
Alters the last access time of a key(s). A key is ignored if it does not exist. Read more
sourcefn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Returns the remaining time to live of a key that has a timeout. Read more
sourcefn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>where
Self: Sized,
K: Into<BulkString>,
fn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>where
Self: Sized,
K: Into<BulkString>,
Returns the string representation of the type of the value stored at key. Read more
sourcefn unlink<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn unlink<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
This command is very similar to DEL: it removes the specified keys. Read more
sourceimpl GeoCommands for Transaction
impl GeoCommands for Transaction
sourcefn geoadd<K, M, I>(
&mut self,
key: K,
condition: GeoAddCondition,
change: bool,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, f64, M)>,
fn geoadd<K, M, I>(
&mut self,
key: K,
condition: GeoAddCondition,
change: bool,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, f64, M)>,
Adds the specified geospatial items (longitude, latitude, name) to the specified key. Read more
sourcefn geodist<K, M>(
&mut self,
key: K,
member1: M,
member2: M,
unit: GeoUnit
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn geodist<K, M>(
&mut self,
key: K,
member1: M,
member2: M,
unit: GeoUnit
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Return the distance between two members in the geospatial index
represented by the sorted set. Read more
sourcefn geohash<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn geohash<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
sourcefn geopos<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn geopos<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Return the positions (longitude,latitude) of all the specified members
of the geospatial index represented by the sorted set at key. Read more
sourcefn geosearch<K, M1, M2, A>(
&mut self,
key: K,
from: GeoSearchFrom<M1>,
by: GeoSearchBy,
options: GeoSearchOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: FromValue,
A: FromSingleValueArray<GeoSearchResult<M2>>,
fn geosearch<K, M1, M2, A>(
&mut self,
key: K,
from: GeoSearchFrom<M1>,
by: GeoSearchBy,
options: GeoSearchOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: FromValue,
A: FromSingleValueArray<GeoSearchResult<M2>>,
sourcefn geosearchstore<D, S, M>(
&mut self,
destination: D,
source: S,
from: GeoSearchFrom<M>,
by: GeoSearchBy,
options: GeoSearchStoreOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
M: Into<BulkString>,
fn geosearchstore<D, S, M>(
&mut self,
destination: D,
source: S,
from: GeoSearchFrom<M>,
by: GeoSearchBy,
options: GeoSearchStoreOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
M: Into<BulkString>,
sourceimpl HashCommands for Transaction
impl HashCommands for Transaction
sourcefn hdel<K, F, C>(&mut self, key: K, fields: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
fn hdel<K, F, C>(&mut self, key: K, fields: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
Removes the specified fields from the hash stored at key. Read more
sourcefn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
fn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
Returns if field is an existing field in the hash stored at key. Read more
sourcefn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: FromValue,
fn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: FromValue,
Returns the value associated with field in the hash stored at key. Read more
sourcefn hgetall<K, F, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
fn hgetall<K, F, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
Returns all fields and values of the hash stored at key. Read more
sourcefn hincrby<K, F>(
&mut self,
key: K,
field: F,
increment: i64
) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
fn hincrby<K, F>(
&mut self,
key: K,
field: F,
increment: i64
) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
Increments the number stored at field in the hash stored at key by increment. Read more
sourcefn hincrbyfloat<K, F>(
&mut self,
key: K,
field: F,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
fn hincrbyfloat<K, F>(
&mut self,
key: K,
field: F,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
Increment the specified field of a hash stored at key,
and representing a floating point number, by the specified increment. Read more
sourcefn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
A: FromSingleValueArray<F>,
fn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
A: FromSingleValueArray<F>,
Returns all field names in the hash stored at key. Read more
sourcefn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Returns the number of fields contained in the hash stored at key. Read more
sourcefn hmget<K, F, V, C, A>(
&mut self,
key: K,
fields: C
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
V: FromValue,
A: FromSingleValueArray<V>,
fn hmget<K, F, V, C, A>(
&mut self,
key: K,
fields: C
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
V: FromValue,
A: FromSingleValueArray<V>,
Returns the values associated with the specified fields in the hash stored at key. Read more
sourcefn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
fn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
return random fields from the hash value stored at key. Read more
sourcefn hrandfields<K, F, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
A: FromSingleValueArray<F>,
fn hrandfields<K, F, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
A: FromSingleValueArray<F>,
return random fields from the hash value stored at key. Read more
sourcefn hrandfields_with_values<K, F, V, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
fn hrandfields_with_values<K, F, V, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
return random fields from the hash value stored at key. Read more
sourcefn hscan<K, F, V>(
&mut self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
fn hscan<K, F, V>(
&mut self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>where
Self: Sized,
K: Into<BulkString>,
F: FromValue,
V: FromValue,
Iterates fields of Hash types and their associated values. Read more
sourcefn hset<K, F, V, I>(
&mut self,
key: K,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
I: KeyValueArgOrCollection<F, V>,
fn hset<K, F, V, I>(
&mut self,
key: K,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
I: KeyValueArgOrCollection<F, V>,
Sets field in the hash stored at key to value. Read more
sourcefn hsetnx<K, F, V>(
&mut self,
key: K,
field: F,
value: V
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
fn hsetnx<K, F, V>(
&mut self,
key: K,
field: F,
value: V
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
Sets field in the hash stored at key to value, only if field does not yet exist. Read more
sourcefn hstrlen<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
fn hstrlen<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
F: Into<BulkString>,
Returns the string length of the value associated with field in the hash stored at key. Read more
sourcefn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
A: FromSingleValueArray<V>,
fn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
A: FromSingleValueArray<V>,
list of values in the hash, or an empty list when key does not exist. Read more
sourceimpl HyperLogLogCommands for Transaction
impl HyperLogLogCommands for Transaction
sourcefn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
EE: SingleArgOrCollection<E>,
fn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
EE: SingleArgOrCollection<E>,
Adds the specified elements to the specified HyperLogLog. Read more
sourcefn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
Return the approximated cardinality of the set(s)
observed by the HyperLogLog at key(s). Read more
sourcefn pfmerge<D, S, SS>(
&mut self,
dest_key: D,
source_keys: SS
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
SS: SingleArgOrCollection<S>,
fn pfmerge<D, S, SS>(
&mut self,
dest_key: D,
source_keys: SS
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
SS: SingleArgOrCollection<S>,
Merge N different HyperLogLogs into a single one. Read more
sourceimpl ListCommands for Transaction
impl ListCommands for Transaction
sourcefn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
fn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
Returns the element at index index in the list stored at key. Read more
sourcefn linsert<K, E>(
&mut self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
fn linsert<K, E>(
&mut self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
Inserts element in the list stored at key either before or after the reference value pivot. Read more
sourcefn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Inserts element in the list stored at key either before or after the reference value pivot. Read more
sourcefn lmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
E: FromValue,
fn lmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
E: FromValue,
Atomically returns and removes the first/last element (head/tail depending on the wherefrom argument)
of the list stored at source, and pushes the element at the first/last element
(head/tail depending on the whereto argument) of the list stored at destination. Read more
sourcefn lmpop<K, E, C>(
&mut self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, (String, Vec<E>)>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
C: SingleArgOrCollection<K>,
fn lmpop<K, E, C>(
&mut self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, (String, Vec<E>)>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
C: SingleArgOrCollection<K>,
Pops one or more elements from the first non-empty list key from the list of provided key names. Read more
sourcefn lpop<K, E, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
A: FromSingleValueArray<E>,
fn lpop<K, E, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
A: FromSingleValueArray<E>,
Removes and returns the first elements of the list stored at key. Read more
sourcefn lpos<K, E>(
&mut self,
key: K,
element: E,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
fn lpos<K, E>(
&mut self,
key: K,
element: E,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
Returns the index of matching elements inside a Redis list. Read more
sourcefn lpos_with_count<K, E, A>(
&mut self,
key: K,
element: E,
num_matches: usize,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
A: FromSingleValueArray<usize>,
fn lpos_with_count<K, E, A>(
&mut self,
key: K,
element: E,
num_matches: usize,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
A: FromSingleValueArray<usize>,
Returns the index of matching elements inside a Redis list. Read more
sourcefn lpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
fn lpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
Insert all the specified values at the head of the list stored at key Read more
sourcefn lpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
fn lpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
Inserts specified values at the head of the list stored at key,
only if key already exists and holds a list. Read more
sourcefn lrange<K, E, A>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
A: FromSingleValueArray<E>,
fn lrange<K, E, A>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
A: FromSingleValueArray<E>,
Returns the specified elements of the list stored at key. Read more
sourcefn lrem<K, E>(
&mut self,
key: K,
count: isize,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
fn lrem<K, E>(
&mut self,
key: K,
count: isize,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
Removes the first count occurrences of elements equal to element from the list stored at key. Read more
sourcefn lset<K, E>(
&mut self,
key: K,
index: isize,
element: E
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
fn lset<K, E>(
&mut self,
key: K,
index: isize,
element: E
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
Sets the list element at index to element. Read more
sourcefn ltrim<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
fn ltrim<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
Trim an existing list so that it will contain only the specified range of elements specified. Read more
sourcefn rpop<K, E, C>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, C>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
C: FromSingleValueArray<E>,
fn rpop<K, E, C>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, C>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
C: FromSingleValueArray<E>,
Removes and returns the first elements of the list stored at key. Read more
sourcefn rpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
fn rpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
Insert all the specified values at the tail of the list stored at key Read more
sourcefn rpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
fn rpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
C: SingleArgOrCollection<E>,
Inserts specified values at the tail of the list stored at key,
only if key already exists and holds a list. Read more
sourceimpl ScriptingCommands for Transaction
impl ScriptingCommands for Transaction
sourcefn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
Invoke the execution of a server-side Lua script. Read more
sourcefn eval_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn eval_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
sourcefn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
Evaluate a script from the server’s cache by its SHA1 digest. Read more
sourcefn evalsha_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn evalsha_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
sourcefn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
Invoke a function. Read more
sourcefn fcall_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn fcall_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
Invoke a function. Read more
sourcefn function_delete<L>(
&mut self,
library_name: L
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
L: Into<BulkString>,
fn function_delete<L>(
&mut self,
library_name: L
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
L: Into<BulkString>,
Delete a library and all its functions. Read more
sourcefn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>where
Self: Sized,
P: FromValue,
fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>where
Self: Sized,
P: FromValue,
Return the serialized payload of loaded libraries.
You can restore the serialized payload later with the
function_restore
command. Read moresourcefn function_flush(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn function_flush(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Deletes all the libraries. Read more
sourcefn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Kill a function that is currently executing. Read more
sourcefn function_list(
&mut self,
options: FunctionListOptions
) -> PreparedCommand<'_, Self, Vec<LibraryInfo>>where
Self: Sized,
fn function_list(
&mut self,
options: FunctionListOptions
) -> PreparedCommand<'_, Self, Vec<LibraryInfo>>where
Self: Sized,
Return information about the functions and libraries. Read more
sourcefn function_load<F, L>(
&mut self,
replace: bool,
function_code: F
) -> PreparedCommand<'_, Self, L>where
Self: Sized,
F: Into<BulkString>,
L: FromValue,
fn function_load<F, L>(
&mut self,
replace: bool,
function_code: F
) -> PreparedCommand<'_, Self, L>where
Self: Sized,
F: Into<BulkString>,
L: FromValue,
Load a library to Redis. Read more
sourcefn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
fn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
Restore libraries from the serialized payload. Read more
sourcefn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
fn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
Return information about the function that’s currently running and information about the available execution engines. Read more
sourcefn script_debug(
&mut self,
debug_mode: ScriptDebugMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn script_debug(
&mut self,
debug_mode: ScriptDebugMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Set the debug mode for subsequent scripts executed with EVAL. Read more
sourcefn script_exists<S, C>(
&mut self,
sha1s: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
S: Into<BulkString>,
C: SingleArgOrCollection<S>,
fn script_exists<S, C>(
&mut self,
sha1s: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
S: Into<BulkString>,
C: SingleArgOrCollection<S>,
Returns information about the existence of the scripts in the script cache. Read more
sourcefn script_flush(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn script_flush(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Flush the Lua scripts cache. Read more
sourcefn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Kills the currently executing EVAL script,
assuming no write operation was yet performed by the script. Read more
sourcefn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>where
Self: Sized,
S: Into<BulkString>,
V: FromValue,
fn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>where
Self: Sized,
S: Into<BulkString>,
V: FromValue,
Load a script into the scripts cache, without executing it. Read more
sourceimpl ServerCommands for Transaction
impl ServerCommands for Transaction
sourcefn acl_cat<C, CC>(
&mut self,
options: AclCatOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromValue,
CC: FromSingleValueArray<C>,
fn acl_cat<C, CC>(
&mut self,
options: AclCatOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromValue,
CC: FromSingleValueArray<C>,
The command shows the available ACL categories if called without arguments.
If a category name is given, the command shows all the Redis commands in the specified category. Read more
sourcefn acl_deluser<U, UU>(
&mut self,
usernames: UU
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
U: Into<BulkString>,
UU: SingleArgOrCollection<U>,
fn acl_deluser<U, UU>(
&mut self,
usernames: UU
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
U: Into<BulkString>,
UU: SingleArgOrCollection<U>,
Delete all the specified ACL users and terminate all
the connections that are authenticated with such users. Read more
sourcefn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
U: Into<BulkString>,
C: Into<BulkString>,
R: FromValue,
fn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
U: Into<BulkString>,
C: Into<BulkString>,
R: FromValue,
Simulate the execution of a given command by a given user. Read more
sourcefn acl_genpass<R: FromValue>(
&mut self,
options: AclGenPassOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn acl_genpass<R: FromValue>(
&mut self,
options: AclGenPassOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
Generates a password starting from /dev/urandom if available,
otherwise (in systems without /dev/urandom) it uses a weaker
system that is likely still better than picking a weak password by hand. Read more
sourcefn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
U: Into<BulkString>,
RR: FromKeyValueValueArray<String, Value>,
fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
U: Into<BulkString>,
RR: FromKeyValueValueArray<String, Value>,
The command returns all the rules defined for an existing ACL user. Read more
sourcefn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
The command shows the currently active ACL rules in the Redis server. Read more
sourcefn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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. Read more
sourcefn acl_log<EE>(
&mut self,
options: AclLogOptions
) -> PreparedCommand<'_, Self, Vec<EE>>where
Self: Sized,
EE: FromKeyValueValueArray<String, Value>,
fn acl_log<EE>(
&mut self,
options: AclLogOptions
) -> PreparedCommand<'_, Self, Vec<EE>>where
Self: Sized,
EE: FromKeyValueValueArray<String, Value>,
The command shows a list of recent ACL security events Read more
sourcefn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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. Read more
sourcefn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: Into<BulkString>,
R: Into<BulkString>,
RR: SingleArgOrCollection<R>,
fn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: Into<BulkString>,
R: Into<BulkString>,
RR: SingleArgOrCollection<R>,
Create an ACL user with the specified rules or modify the rules of an existing user. Read more
sourcefn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>where
Self: Sized,
U: FromValue,
UU: FromSingleValueArray<U>,
fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>where
Self: Sized,
U: FromValue,
UU: FromSingleValueArray<U>,
The command shows a list of all the usernames of the currently configured users in the Redis ACL system. Read more
sourcefn acl_whoami<U: FromValue>(&mut self) -> PreparedCommand<'_, Self, U>where
Self: Sized,
fn acl_whoami<U: FromValue>(&mut self) -> PreparedCommand<'_, Self, U>where
Self: Sized,
Return the username the current connection is authenticated with. Read more
sourcefn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
Return an array with details about every Redis command. Read more
sourcefn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Number of total commands in this Redis server. Read more
sourcefn command_docs<N, NN, DD>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: Into<BulkString>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc>,
fn command_docs<N, NN, DD>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: Into<BulkString>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc>,
Number of total commands in this Redis server. Read more
sourcefn command_getkeys<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<BulkString>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
fn command_getkeys<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<BulkString>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
A helper command to let you find the keys from a full Redis command. Read more
sourcefn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<BulkString>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>>,
fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<BulkString>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>>,
A helper command to let you find the keys from a full Redis command together with flags indicating what each key is used for. Read more
sourcefn command_info<N, NN>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
N: Into<BulkString>,
NN: SingleArgOrCollection<N>,
fn command_info<N, NN>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
N: Into<BulkString>,
NN: SingleArgOrCollection<N>,
Return an array with details about multiple Redis command. Read more
sourcefn command_list<CC>(
&mut self,
options: CommandListOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
CC: FromSingleValueArray<String>,
fn command_list<CC>(
&mut self,
options: CommandListOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
CC: FromSingleValueArray<String>,
Return an array of the server’s command names based on optional filters Read more
sourcefn config_get<P, PP, V, VV>(
&mut self,
params: PP
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: Into<BulkString>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V>,
fn config_get<P, PP, V, VV>(
&mut self,
params: PP
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: Into<BulkString>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V>,
Used to read the configuration parameters of a running Redis server. Read more
sourcefn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Rewrites the redis.conf file the server was started with,
applying the minimal changes needed to make it reflect the configuration currently used by the server,
which may be different compared to the original one because of the use of the
config_set
command. Read moresourcefn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
V: Into<BulkString>,
C: KeyValueArgOrCollection<P, V>,
fn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
V: Into<BulkString>,
C: KeyValueArgOrCollection<P, V>,
Used in order to reconfigure the server at run time without the need to restart Redis. Read more
sourcefn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Return the number of keys in the currently-selected database. Read more
sourcefn failover(&mut self, options: FailOverOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn failover(&mut self, options: FailOverOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command will start a coordinated failover between
the currently-connected-to master and one of its replicas. Read more
sourcefn flushdb(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushdb(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Delete all the keys of the currently selected DB. Read more
sourcefn flushall(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushall(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Delete all the keys of all the existing databases, not just the currently selected one. Read more
sourcefn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>where
Self: Sized,
SS: SingleArgOrCollection<InfoSection>,
fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>where
Self: Sized,
SS: SingleArgOrCollection<InfoSection>,
This command returns information and statistics about the server
in a format that is simple to parse by computers and easy to read by humans. Read more
sourcefn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
Return the UNIX TIME of the last DB save executed with success. Read more
sourcefn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
This command reports about different latency-related issues and advises about possible remedies. Read more
sourcefn latency_graph(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_graph(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Produces an ASCII-art style graph for the specified event. Read more
sourcefn latency_histogram<C, CC, RR>(
&mut self,
commands: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<BulkString>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram>,
fn latency_histogram<C, CC, RR>(
&mut self,
commands: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<BulkString>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram>,
This command reports a cumulative distribution of latencies
in the format of a histogram for each of the specified command names. Read more
sourcefn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromSingleValueArray<(u32, u32)>,
fn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromSingleValueArray<(u32, u32)>,
This command returns the raw data of the event’s latency spikes time series. Read more
sourcefn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromSingleValueArray<(String, u32, u32, u32)>,
fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromSingleValueArray<(String, u32, u32, u32)>,
This command reports the latest latency events logged. Read more
sourcefn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
EE: SingleArgOrCollection<LatencyHistoryEvent>,
fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
EE: SingleArgOrCollection<LatencyHistoryEvent>,
This command resets the latency spikes time series of all, or only some, events. Read more
sourcefn lolwut(&mut self, options: LolWutOptions) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn lolwut(&mut self, options: LolWutOptions) -> PreparedCommand<'_, Self, String>where
Self: Sized,
The LOLWUT command displays the Redis version: however as a side effect of doing so,
it also creates a piece of generative computer art that is different with each version of Redis. Read more
sourcefn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
This command reports about different memory-related issues that
the Redis server experiences, and advises about possible remedies. Read more
sourcefn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
This command provides an internal statistics report from the memory allocator. Read more
sourcefn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command attempts to purge dirty pages so these can be reclaimed by the allocator. Read more
sourcefn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
This command returns information about the memory usage of the server. Read more
sourcefn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
fn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
This command reports the number of bytes that a key and its value require to be stored in RAM. Read more
sourcefn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>where
Self: Sized,
MM: FromSingleValueArray<ModuleInfo>,
fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>where
Self: Sized,
MM: FromSingleValueArray<ModuleInfo>,
Returns information about the modules loaded to the server. Read more
sourcefn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
fn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: Into<BulkString>,
Loads a module from a dynamic library at runtime. Read more
sourcefn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<BulkString>,
fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<BulkString>,
Unloads a module. Read more
sourcefn replicaof(
&mut self,
options: ReplicaOfOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn replicaof(
&mut self,
options: ReplicaOfOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command can change the replication settings of a replica on the fly. Read more
sourcefn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
Provide information on the role of a Redis instance in the context of replication,
by returning if the instance is currently a
master
, slave
, or sentinel
. Read moresourcefn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command performs a synchronous save of the dataset producing a point in time snapshot
of all the data inside the Redis instance, in the form of an RDB file. Read more
sourcefn shutdown(&mut self, options: ShutdownOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn shutdown(&mut self, options: ShutdownOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Shutdown the server Read more
sourcefn slowlog_get(
&mut self,
options: SlowLogOptions
) -> PreparedCommand<'_, Self, Vec<SlowLogEntry>>where
Self: Sized,
fn slowlog_get(
&mut self,
options: SlowLogOptions
) -> PreparedCommand<'_, Self, Vec<SlowLogEntry>>where
Self: Sized,
This command returns entries from the slow log in chronological order. Read more
sourcefn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
This command returns the current number of entries in the slow log. Read more
sourcefn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command resets the slow log, clearing all entries in it. Read more
sourceimpl SetCommands for Transaction
impl SetCommands for Transaction
sourcefn sadd<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn sadd<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Add the specified members to the set stored at key. Read more
sourcefn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Returns the set cardinality (number of elements) of the set stored at key. Read more
sourcefn sdiff<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
fn sdiff<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Returns the members of the set resulting from the difference
between the first set and all the successive sets. Read more
sourcefn sdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn sdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn sinter<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
fn sinter<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Returns the members of the set resulting from the intersection of all the given sets. Read more
sourcefn sintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn sintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn sinterstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn sinterstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn sismember<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn sismember<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Returns if member is a member of the set stored at key. Read more
sourcefn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
fn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
Returns all the members of the set value stored at key. Read more
sourcefn smismember<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn smismember<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Returns whether each member is a member of the set stored at key. Read more
sourcefn smove<S, D, M>(
&mut self,
source: S,
destination: D,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
M: Into<BulkString>,
fn smove<S, D, M>(
&mut self,
source: S,
destination: D,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: Into<BulkString>,
D: Into<BulkString>,
M: Into<BulkString>,
Move member from the set at source to the set at destination. Read more
sourcefn spop<K, M, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
fn spop<K, M, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
Removes and returns one or more random members from the set value store at key. Read more
sourcefn srandmember<K, M, A>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
fn srandmember<K, M, A>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
A: FromSingleValueArray<M>,
Removes and returns one or more random members from the set value store at key. Read more
sourcefn srem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn srem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Remove the specified members from the set stored at key. Read more
sourcefn sscan<K, M>(
&mut self,
key: K,
cursor: u64,
options: SScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<M>)>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
fn sscan<K, M>(
&mut self,
key: K,
cursor: u64,
options: SScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<M>)>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
Iterates elements of Sets types. Read more
sourcefn sunion<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
fn sunion<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<BulkString>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Returns the members of the set resulting from the union of all the given sets. Read more
sourcefn sunionstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn sunionstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourceimpl SortedSetCommands for Transaction
impl SortedSetCommands for Transaction
sourcefn zadd<K, M, I>(
&mut self,
key: K,
items: I,
options: ZAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, M)>,
fn zadd<K, M, I>(
&mut self,
key: K,
items: I,
options: ZAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, M)>,
Adds all the specified members with the specified scores
to the sorted set stored at key. Read more
sourcefn zadd_incr<K, M>(
&mut self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn zadd_incr<K, M>(
&mut self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
In this mode ZADD acts like ZINCRBY.
Only one score-element pair can be specified in this mode. Read more
sourcefn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Returns the sorted set cardinality (number of elements)
of the sorted set stored at key. Read more
sourcefn zcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
fn zcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
Returns the number of elements in the sorted set at key with a score between min and max. Read more
sourcefn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
This command is similar to zdiffstore, but instead of storing the resulting sorted set,
it is returned to the client. Read more
sourcefn zdiff_with_scores<K, C, E>(
&mut self,
keys: C
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zdiff_with_scores<K, C, E>(
&mut self,
keys: C
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
This command is similar to zdiffstore, but instead of storing the resulting sorted set,
it is returned to the client. Read more
sourcefn zdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn zdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
Computes the difference between the first and all successive
input sorted sets and stores the result in destination. Read more
sourcefn zincrby<K, M>(
&mut self,
key: K,
increment: f64,
member: M
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn zincrby<K, M>(
&mut self,
key: K,
increment: f64,
member: M
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Increments the score of member in the sorted set stored at key by increment. Read more
sourcefn zinter<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zinter<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zinterstore,
but instead of storing the resulting sorted set, it is returned to the client. Read more
sourcefn zinter_with_scores<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zinter_with_scores<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zinterstore,
but instead of storing the resulting sorted set, it is returned to the client. Read more
sourcefn zintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn zintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn zinterstore<D, K, C, W>(
&mut self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
fn zinterstore<D, K, C, W>(
&mut self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
Computes the intersection of numkeys sorted sets given by the specified keys,
and stores the result in destination. Read more
sourcefn zlexcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
fn zlexcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
When all the elements in a sorted set are inserted with the same score,
in order to force lexicographical ordering, this command returns the number
of elements in the sorted set at key with a value between min and max. Read more
sourcefn zmpop<K, C, E>(
&mut self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zmpop<K, C, E>(
&mut self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
Pops one or more elements, that are member-score pairs,
from the first non-empty sorted set in the provided list of key names. Read more
sourcefn zmscore<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<f64>>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn zmscore<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<f64>>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Returns the scores associated with the specified members in the sorted set stored at key. Read more
sourcefn zpopmax<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
fn zpopmax<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
Removes and returns up to count members with the highest scores in the sorted set stored at key. Read more
sourcefn zpopmin<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
fn zpopmin<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
Removes and returns up to count members with the lowest scores in the sorted set stored at key. Read more
sourcefn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
fn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
Return a random element from the sorted set value stored at key. Read more
sourcefn zrandmembers<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
fn zrandmembers<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
Return random elements from the sorted set value stored at key. Read more
sourcefn zrandmembers_with_scores<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
fn zrandmembers_with_scores<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
E: FromValue,
Return random elements with their scores from the sorted set value stored at key. Read more
sourcefn zrange<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
fn zrange<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
Returns the specified range of elements in the sorted set stored at
key
. Read moresourcefn zrange_with_scores<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
fn zrange_with_scores<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
Returns the specified range of elements in the sorted set stored at
key
. Read moresourcefn zrangestore<D, S, SS>(
&mut self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
SS: Into<BulkString>,
fn zrangestore<D, S, SS>(
&mut self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
S: Into<BulkString>,
SS: Into<BulkString>,
sourcefn zrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn zrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Returns the rank of member in the sorted set stored at key,
with the scores ordered from low to high. Read more
sourcefn zrem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn zrem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
Removes the specified members from the sorted set stored at key. Read more
sourcefn zremrangebylex<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
fn zremrangebylex<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
When all the elements in a sorted set are inserted with the same score,
in order to force lexicographical ordering,
this command removes all elements in the sorted set stored at key
between the lexicographical range specified by min and max. Read more
sourcefn zremrangebyrank<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn zremrangebyrank<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Removes all elements in the sorted set stored at key with rank between start and stop. Read more
sourcefn zremrangebyscore<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
fn zremrangebyscore<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
Removes all elements in the sorted set stored at key with a score between min and max (inclusive). Read more
sourcefn zrevrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn zrevrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Returns the rank of member in the sorted set stored at key, with the scores ordered from high to low. Read more
sourcefn zscan<K, M>(
&mut self,
key: K,
cursor: usize,
options: ZScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
fn zscan<K, M>(
&mut self,
key: K,
cursor: usize,
options: ZScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>where
Self: Sized,
K: Into<BulkString>,
M: FromValue,
Iterates elements of Sorted Set types and their associated scores. Read more
sourcefn zscore<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
fn zscore<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: Into<BulkString>,
M: Into<BulkString>,
Returns the score of member in the sorted set at key. Read more
sourcefn zunion<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zunion<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zunionstore,
but instead of storing the resulting sorted set, it is returned to the client. Read more
sourcefn zunion_with_scores<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zunion_with_scores<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zunionstore,
but instead of storing the resulting sorted set, it is returned to the client. Read more
sourcefn zunionstore<D, K, C, W>(
&mut self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
fn zunionstore<D, K, C, W>(
&mut self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
Computes the unionsection of numkeys sorted sets given by the specified keys,
and stores the result in destination. Read more
sourceimpl StreamCommands for Transaction
impl StreamCommands for Transaction
sourcefn xack<K, G, I, II>(
&mut self,
key: K,
group: G,
ids: II
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
fn xack<K, G, I, II>(
&mut self,
key: K,
group: G,
ids: II
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
The XACK command removes one or multiple messages
from the Pending Entries List (PEL) of a stream consumer group Read more
sourcefn xadd<K, I, F, V, FFVV, R>(
&mut self,
key: K,
stream_id: I,
items: FFVV,
options: XAddOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
I: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
FFVV: KeyValueArgOrCollection<F, V>,
R: FromValue,
fn xadd<K, I, F, V, FFVV, R>(
&mut self,
key: K,
stream_id: I,
items: FFVV,
options: XAddOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
I: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
FFVV: KeyValueArgOrCollection<F, V>,
R: FromValue,
Appends the specified stream entry to the stream at the specified key. Read more
sourcefn xautoclaim<K, G, C, I, V>(
&mut self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
options: XAutoClaimOptions
) -> PreparedCommand<'_, Self, XAutoClaimResult<V>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
I: Into<BulkString>,
V: FromValue,
fn xautoclaim<K, G, C, I, V>(
&mut self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
options: XAutoClaimOptions
) -> PreparedCommand<'_, Self, XAutoClaimResult<V>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
I: Into<BulkString>,
V: FromValue,
This command transfers ownership of pending stream entries that match the specified criteria. Read more
sourcefn xclaim<K, G, C, I, II, V>(
&mut self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: II,
options: XClaimOptions
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
fn xclaim<K, G, C, I, II, V>(
&mut self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: II,
options: XClaimOptions
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
In the context of a stream consumer group, this command changes the ownership of a pending message,
so that the new owner is the consumer specified as the command argument. Read more
sourcefn xdel<K, I, II>(&mut self, key: K, ids: II) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
fn xdel<K, I, II>(&mut self, key: K, ids: II) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
Removes the specified entries from a stream, and returns the number of entries deleted. Read more
sourcefn xgroup_create<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
fn xgroup_create<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
This command creates a new consumer group uniquely identified by for the stream stored at . Read more
sourcefn xgroup_createconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
fn xgroup_createconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
Create a consumer named
consumername
in the consumer group groupname`` of the stream that's stored at
key. Read moresourcefn xgroup_delconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
fn xgroup_delconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
C: Into<BulkString>,
The XGROUP DELCONSUMER command deletes a consumer from the consumer group. Read more
sourcefn xgroup_destroy<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
fn xgroup_destroy<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
The XGROUP DESTROY command completely destroys a consumer group. Read more
sourcefn xgroup_setid<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
fn xgroup_setid<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
I: Into<BulkString>,
Set the last delivered ID for a consumer group. Read more
sourcefn xinfo_consumers<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
fn xinfo_consumers<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
This command returns the list of consumers that belong to the
groupname
consumer group of the stream stored at key
. Read moresourcefn xinfo_groups<K>(
&mut self,
key: K
) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>where
Self: Sized,
K: Into<BulkString>,
fn xinfo_groups<K>(
&mut self,
key: K
) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>where
Self: Sized,
K: Into<BulkString>,
This command returns the list of consumers that belong
to the
groupname
consumer group of the stream stored at key
. Read moresourcefn xinfo_stream<K>(
&mut self,
key: K,
options: XInfoStreamOptions
) -> PreparedCommand<'_, Self, XStreamInfo>where
Self: Sized,
K: Into<BulkString>,
fn xinfo_stream<K>(
&mut self,
key: K,
options: XInfoStreamOptions
) -> PreparedCommand<'_, Self, XStreamInfo>where
Self: Sized,
K: Into<BulkString>,
This command returns information about the stream stored at
key
. Read moresourcefn xlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn xlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Returns the number of entries inside a stream. Read more
sourcefn xpending<K, G>(
&mut self,
key: K,
group: G
) -> PreparedCommand<'_, Self, XPendingResult>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
fn xpending<K, G>(
&mut self,
key: K,
group: G
) -> PreparedCommand<'_, Self, XPendingResult>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
The XPENDING command is the interface to inspect the list of pending messages. Read more
sourcefn xpending_with_options<K, G>(
&mut self,
key: K,
group: G,
options: XPendingOptions
) -> PreparedCommand<'_, Self, Vec<XPendingMessageResult>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
fn xpending_with_options<K, G>(
&mut self,
key: K,
group: G,
options: XPendingOptions
) -> PreparedCommand<'_, Self, Vec<XPendingMessageResult>>where
Self: Sized,
K: Into<BulkString>,
G: Into<BulkString>,
The XPENDING command is the interface to inspect the list of pending messages. Read more
sourcefn xrange<K, S, E, V>(
&mut self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: Into<BulkString>,
V: FromValue,
fn xrange<K, S, E, V>(
&mut self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
S: Into<BulkString>,
E: Into<BulkString>,
V: FromValue,
The command returns the stream entries matching a given range of IDs. Read more
sourcefn xread<K, KK, I, II, V, R>(
&mut self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
R: FromKeyValueValueArray<String, Vec<StreamEntry<V>>>,
fn xread<K, KK, I, II, V, R>(
&mut self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
R: FromKeyValueValueArray<String, Vec<StreamEntry<V>>>,
Read data from one or multiple streams,
only returning entries with an ID greater than the last received ID reported by the caller. Read more
sourcefn xreadgroup<G, C, K, KK, I, II, V, R>(
&mut self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
G: Into<BulkString>,
C: Into<BulkString>,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
R: FromKeyValueValueArray<String, Vec<StreamEntry<V>>>,
fn xreadgroup<G, C, K, KK, I, II, V, R>(
&mut self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
G: Into<BulkString>,
C: Into<BulkString>,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
I: Into<BulkString>,
II: SingleArgOrCollection<I>,
V: FromValue,
R: FromKeyValueValueArray<String, Vec<StreamEntry<V>>>,
sourcefn xrevrange<K, E, S, V>(
&mut self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
S: Into<BulkString>,
V: FromValue,
fn xrevrange<K, E, S, V>(
&mut self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: Into<BulkString>,
E: Into<BulkString>,
S: Into<BulkString>,
V: FromValue,
sourcefn xtrim<K>(
&mut self,
key: K,
options: XTrimOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn xtrim<K>(
&mut self,
key: K,
options: XTrimOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
XTRIM trims the stream by evicting older entries (entries with lower IDs) if needed. Read more
sourceimpl StringCommands for Transaction
impl StringCommands for Transaction
sourcefn append<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn append<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
If key already exists and is a string,
this command appends the value at the end of the string.
If key does not exist it is created and set as an empty string,
so APPEND will be similar to SET in this special case. Read more
sourcefn decr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn decr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Decrements the number stored at key by one. Read more
sourcefn decrby<K>(&mut self, key: K, decrement: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn decrby<K>(&mut self, key: K, decrement: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Decrements the number stored at key by one. Read more
sourcefn get<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
Self: Sized,
fn get<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
Self: Sized,
Get the value of key. Read more
sourcefn getdel<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
fn getdel<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
Get the value of key and delete the key. Read more
sourcefn getex<K, V>(
&mut self,
key: K,
options: GetExOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
fn getex<K, V>(
&mut self,
key: K,
options: GetExOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
Get the value of key and optionally set its expiration. GETEX is similar to GET, but is a write command with additional options. Read more
sourcefn getrange<K, V>(
&mut self,
key: K,
start: usize,
end: isize
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
fn getrange<K, V>(
&mut self,
key: K,
start: usize,
end: isize
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
Returns the substring of the string value stored at key, determined by the offsets start and end (both are inclusive). Read more
sourcefn getset<K, V, R>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
R: FromValue,
fn getset<K, V, R>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
R: FromValue,
Atomically sets key to value and returns the old value stored at key.
Returns an error when key exists but does not hold a string value.
Any previous time to live associated with the key is discarded on successful SET operation. Read more
sourcefn incr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn incr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Increments the number stored at key by one. Read more
sourcefn incrby<K>(&mut self, key: K, increment: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
fn incrby<K>(&mut self, key: K, increment: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: Into<BulkString>,
Increments the number stored at key by increment. Read more
sourcefn incrbyfloat<K>(
&mut self,
key: K,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
fn incrbyfloat<K>(
&mut self,
key: K,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: Into<BulkString>,
Increment the string representing a floating point number stored at key by the specified increment.
By using a negative increment value, the result is that the value stored at the key is decremented (by the obvious properties of addition).
If the key does not exist, it is set to 0 before performing the operation.
An error is returned if one of the following conditions occur: Read more
sourcefn lcs<K, V>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
fn lcs<K, V>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: Into<BulkString>,
V: FromValue,
The LCS command implements the longest common subsequence algorithm Read more
sourcefn lcs_len<K>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn lcs_len<K>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
The LCS command implements the longest common subsequence algorithm Read more
sourcefn lcs_idx<K>(
&mut self,
key1: K,
key2: K,
min_match_len: Option<usize>,
with_match_len: bool
) -> PreparedCommand<'_, Self, LcsResult>where
Self: Sized,
K: Into<BulkString>,
fn lcs_idx<K>(
&mut self,
key1: K,
key2: K,
min_match_len: Option<usize>,
with_match_len: bool
) -> PreparedCommand<'_, Self, LcsResult>where
Self: Sized,
K: Into<BulkString>,
The LCS command implements the longest common subsequence algorithm Read more
sourcefn mget<K, KK, V, VV>(&mut self, keys: KK) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
V: FromValue,
VV: FromSingleValueArray<V>,
fn mget<K, KK, V, VV>(&mut self, keys: KK) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
V: FromValue,
VV: FromSingleValueArray<V>,
Returns the values of all specified keys. Read more
sourcefn mset<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
C: KeyValueArgOrCollection<K, V>,
K: Into<BulkString>,
V: Into<BulkString>,
fn mset<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
C: KeyValueArgOrCollection<K, V>,
K: Into<BulkString>,
V: Into<BulkString>,
Sets the given keys to their respective values. Read more
sourcefn msetnx<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
C: KeyValueArgOrCollection<K, V>,
K: Into<BulkString>,
V: Into<BulkString>,
fn msetnx<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
C: KeyValueArgOrCollection<K, V>,
K: Into<BulkString>,
V: Into<BulkString>,
Sets the given keys to their respective values.
MSETNX will not perform any operation at all even if just a single key already exists. Read more
sourcefn psetex<K, V>(
&mut self,
key: K,
milliseconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn psetex<K, V>(
&mut self,
key: K,
milliseconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
sourcefn set<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Self: Sized,
fn set<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Self: Sized,
Set key to hold the string value. Read more
sourcefn set_with_options<K, V>(
&mut self,
key: K,
value: V,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn set_with_options<K, V>(
&mut self,
key: K,
value: V,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Set key to hold the string value. Read more
sourcefn set_get_with_options<K, V1, V2>(
&mut self,
key: K,
value: V1,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, V2>where
Self: Sized,
K: Into<BulkString>,
V1: Into<BulkString>,
V2: FromValue,
fn set_get_with_options<K, V1, V2>(
&mut self,
key: K,
value: V1,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, V2>where
Self: Sized,
K: Into<BulkString>,
V1: Into<BulkString>,
V2: FromValue,
Set key to hold the string value wit GET option enforced Read more
sourcefn setex<K, V>(
&mut self,
key: K,
seconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn setex<K, V>(
&mut self,
key: K,
seconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Set key to hold the string value and set key to timeout after a given number of seconds. Read more
sourcefn setnx<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn setnx<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Set key to hold string value if key does not exist. Read more
sourcefn setrange<K, V>(
&mut self,
key: K,
offset: usize,
value: V
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
fn setrange<K, V>(
&mut self,
key: K,
offset: usize,
value: V
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
V: Into<BulkString>,
Overwrites part of the string stored at key,
starting at the specified offset,
for the entire length of value. Read more
sourcefn strlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
fn strlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<BulkString>,
Returns the length of the string value stored at key. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more