Struct redis_driver::MultiplexedClient
source · pub struct MultiplexedClient { /* private fields */ }
Expand description
A multiplexed client that can be cloned, allowing requests to be be sent concurrently on the same underlying connection.
Compared to a single client, a multiplexed client cannot offers access to all existing Redis commands. Transactions and blocking commands are not compatible with a multiplexed client because they monopolize the whole connection which cannot be shared anymore. It means other consumers of the same multiplexed client will be blocked each time a transaction or a blocking command is in progress, losing the advantage of a shared connection.
#See also Multiplexing Explained
Implementations
sourceimpl MultiplexedClient
impl MultiplexedClient
sourcepub async fn connect(config: impl IntoConfig) -> Result<Self>
pub async fn connect(config: impl IntoConfig) -> Result<Self>
sourcepub async fn send(&mut self, command: Command) -> Result<Value>
pub async fn send(&mut self, command: Command) -> Result<Value>
Send an arbitrary command to the Redis server.
This is used primarily intended for implementing high level commands API but may also be used to provide access to new features that lack a direct API.
Arguments
name
- Command name in uppercase.args
- Command arguments which can be provided as arrays (up to 4 elements) or vectors ofBulkString
.
Errors
Any Redis driver Error
that occurs during the send operation
Example
use redis_driver::{resp::cmd, MultiplexedClient, Result};
#[tokio::main]
async fn main() -> Result<()> {
let mut client = MultiplexedClient::connect("127.0.0.1:6379").await?;
let values: Vec<String> = client
.send(cmd("MGET").arg("key1").arg("key2").arg("key3").arg("key4"))
.await?
.into()?;
println!("{:?}", values);
Ok(())
}
sourcepub fn send_and_forget(&mut self, command: Command) -> Result<()>
pub fn send_and_forget(&mut self, command: Command) -> Result<()>
sourcepub fn create_pipeline(&mut self) -> Pipeline
pub fn create_pipeline(&mut self) -> Pipeline
Create a new pipeline
sourcepub fn create_transaction(&mut self) -> Transaction
pub fn create_transaction(&mut self) -> Transaction
Create a new transaction
Because of the multiplexed nature of the client,
watch
&
unwatch
commands cannot be supported.
To be able to use these commands with a transaction,
Client
or PooledClientManager
should be used instead
Trait Implementations
sourceimpl BitmapCommands for MultiplexedClient
impl BitmapCommands for MultiplexedClient
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>,
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>>,
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>>,
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>,
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>,
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>,
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>,
sourceimpl Clone for MultiplexedClient
impl Clone for MultiplexedClient
sourcefn clone(&self) -> MultiplexedClient
fn clone(&self) -> MultiplexedClient
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl ClusterCommands for MultiplexedClient
impl ClusterCommands for MultiplexedClient
sourcefn asking(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn asking(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_addslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgOrCollection<u16>,
fn cluster_addslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgOrCollection<u16>,
sourcefn cluster_addslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgOrCollection<u16, u16>,
fn cluster_addslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgOrCollection<u16, u16>,
cluster_addslots
command in that they both assign hash slots to nodes. Read moresourcefn cluster_bumpepoch(
&mut self
) -> PreparedCommand<'_, Self, ClusterBumpEpochResult>where
Self: Sized,
fn cluster_bumpepoch(
&mut self
) -> PreparedCommand<'_, Self, ClusterBumpEpochResult>where
Self: Sized,
sourcefn cluster_count_failure_reports<I>(
&mut self,
node_id: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
I: Into<BulkString>,
fn cluster_count_failure_reports<I>(
&mut self,
node_id: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
I: Into<BulkString>,
sourcefn cluster_countkeysinslot(
&mut self,
slot: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn cluster_countkeysinslot(
&mut self,
slot: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
sourcefn cluster_delslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgOrCollection<u16>,
fn cluster_delslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgOrCollection<u16>,
sourcefn cluster_delslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgOrCollection<u16, u16>,
fn cluster_delslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgOrCollection<u16, u16>,
cluster_delslotsrange
command in that they both remove hash slots from the node. Read moresourcefn cluster_failover(
&mut self,
option: ClusterFailoverOption
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_failover(
&mut self,
option: ClusterFailoverOption
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_flushslots(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_flushslots(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_forget<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: Into<BulkString>,
fn cluster_forget<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: Into<BulkString>,
sourcefn cluster_getkeysinslot(
&mut self,
slot: u16,
count: usize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_getkeysinslot(
&mut self,
slot: u16,
count: usize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_info(
&mut self,
slot: u16,
count: usize
) -> PreparedCommand<'_, Self, ClusterInfo>where
Self: Sized,
fn cluster_info(
&mut self,
slot: u16,
count: usize
) -> PreparedCommand<'_, Self, ClusterInfo>where
Self: Sized,
sourcefn cluster_keyslot<K>(&mut self, key: K) -> PreparedCommand<'_, Self, u16>where
Self: Sized,
K: Into<BulkString>,
fn cluster_keyslot<K>(&mut self, key: K) -> PreparedCommand<'_, Self, u16>where
Self: Sized,
K: Into<BulkString>,
sourcefn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>where
Self: Sized,
I: FromSingleValueArray<ClusterLinkInfo>,
fn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>where
Self: Sized,
I: FromSingleValueArray<ClusterLinkInfo>,
sourcefn cluster_meet<IP>(
&mut self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
IP: Into<BulkString>,
fn cluster_meet<IP>(
&mut self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
IP: Into<BulkString>,
sourcefn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>where
Self: Sized,
N: FromValue,
fn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>where
Self: Sized,
N: FromValue,
sourcefn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
sourcefn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: Into<BulkString>,
R: FromValue,
fn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: Into<BulkString>,
R: FromValue,
sourcefn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: Into<BulkString>,
fn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: Into<BulkString>,
sourcefn cluster_reset(
&mut self,
reset_type: ClusterResetType
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_reset(
&mut self,
reset_type: ClusterResetType
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_saveconfig(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_saveconfig(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fsync(2)
in order to make sure the configuration is flushed on the computer disk. Read moresourcefn cluster_set_config_epoch(
&mut self,
config_epoch: u64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_set_config_epoch(
&mut self,
config_epoch: u64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_setslot(
&mut self,
slot: u16,
subcommand: ClusterSetSlotSubCommand
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_setslot(
&mut self,
slot: u16,
subcommand: ClusterSetSlotSubCommand
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn cluster_shards<S>(&mut self) -> PreparedCommand<'_, Self, S>where
Self: Sized,
S: FromSingleValueArray<ClusterShardResult>,
fn cluster_shards<S>(&mut self) -> PreparedCommand<'_, Self, S>where
Self: Sized,
S: FromSingleValueArray<ClusterShardResult>,
sourceimpl ConnectionCommands for MultiplexedClient
impl ConnectionCommands for MultiplexedClient
sourcefn auth<U, P>(
&mut self,
username: Option<U>,
password: P
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: Into<BulkString>,
P: Into<BulkString>,
fn auth<U, P>(
&mut self,
username: Option<U>,
password: P
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: Into<BulkString>,
P: Into<BulkString>,
sourcefn client_caching(
&mut self,
mode: ClientCachingMode
) -> PreparedCommand<'_, Self, Option<()>>where
Self: Sized,
fn client_caching(
&mut self,
mode: ClientCachingMode
) -> PreparedCommand<'_, Self, Option<()>>where
Self: Sized,
sourcefn client_getname<CN>(&mut self) -> PreparedCommand<'_, Self, Option<CN>>where
Self: Sized,
CN: FromValue,
fn client_getname<CN>(&mut self) -> PreparedCommand<'_, Self, Option<CN>>where
Self: Sized,
CN: FromValue,
sourcefn client_getredir(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
fn client_getredir(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
sourcefn client_id(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
fn client_id(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
sourcefn client_info(&mut self) -> PreparedCommand<'_, Self, ClientInfo>where
Self: Sized,
fn client_info(&mut self) -> PreparedCommand<'_, Self, ClientInfo>where
Self: Sized,
sourcefn client_kill(
&mut self,
options: ClientKillOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn client_kill(
&mut self,
options: ClientKillOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
sourcefn client_list(
&mut self,
options: ClientListOptions
) -> PreparedCommand<'_, Self, ClientListResult>where
Self: Sized,
fn client_list(
&mut self,
options: ClientListOptions
) -> PreparedCommand<'_, Self, ClientListResult>where
Self: Sized,
sourcefn client_no_evict(&mut self, no_evict: bool) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn client_no_evict(&mut self, no_evict: bool) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
client eviction
mode for the current connection. Read moresourcefn client_pause(
&mut self,
timeout: u64,
mode: ClientPauseMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn client_pause(
&mut self,
timeout: u64,
mode: ClientPauseMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn client_reply(
&mut self,
mode: ClientReplyMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn client_reply(
&mut self,
mode: ClientReplyMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn client_setname<CN>(
&mut self,
connection_name: CN
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
CN: Into<BulkString>,
fn client_setname<CN>(
&mut self,
connection_name: CN
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
CN: Into<BulkString>,
sourcefn client_tracking(
&mut self,
status: ClientTrackingStatus,
options: ClientTrackingOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn client_tracking(
&mut self,
status: ClientTrackingStatus,
options: ClientTrackingOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
server assisted client side caching
. Read moresourcefn client_trackinginfo(
&mut self
) -> PreparedCommand<'_, Self, ClientTrackingInfo>where
Self: Sized,
fn client_trackinginfo(
&mut self
) -> PreparedCommand<'_, Self, ClientTrackingInfo>where
Self: Sized,
server assisted client side caching
. Read moresourcefn client_unblock(
&mut self,
client_id: i64,
mode: ClientUnblockMode
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn client_unblock(
&mut self,
client_id: i64,
mode: ClientUnblockMode
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
BRPOP
or XREAD
or WAIT
. Read moresourcefn client_unpause(&mut self) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn client_unpause(&mut self) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
client_pause
. Read moresourcefn echo<M, R>(&mut self, message: M) -> PreparedCommand<'_, Self, R>where
Self: Sized,
M: Into<BulkString>,
R: FromValue,
fn echo<M, R>(&mut self, message: M) -> PreparedCommand<'_, Self, R>where
Self: Sized,
M: Into<BulkString>,
R: FromValue,
message
. Read moresourcefn hello(
&mut self,
options: HelloOptions
) -> PreparedCommand<'_, Self, HelloResult>where
Self: Sized,
fn hello(
&mut self,
options: HelloOptions
) -> PreparedCommand<'_, Self, HelloResult>where
Self: Sized,
sourcefn ping<R>(&mut self, options: PingOptions) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
fn ping<R>(&mut self, options: PingOptions) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromValue,
sourcefn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourceimpl GenericCommands for MultiplexedClient
impl GenericCommands for MultiplexedClient
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
sourceimpl GeoCommands for MultiplexedClient
impl GeoCommands for MultiplexedClient
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)>,
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>,
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>,
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 MultiplexedClient
impl HashCommands for MultiplexedClient
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>,
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>,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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,
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>,
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>,
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,
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>,
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>,
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>,
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>,
sourceimpl HyperLogLogCommands for MultiplexedClient
impl HyperLogLogCommands for MultiplexedClient
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>,
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>,
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>,
sourceimpl ListCommands for MultiplexedClient
impl ListCommands for MultiplexedClient
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,
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>,
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>,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
sourceimpl PubSubCommands for MultiplexedClient
impl PubSubCommands for MultiplexedClient
sourcefn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>where
C: Into<BulkString> + Send + 'a,
CC: SingleArgOrCollection<C>,
fn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>where
C: Into<BulkString> + Send + 'a,
CC: SingleArgOrCollection<C>,
sourcefn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>where
P: Into<BulkString> + Send + 'a,
PP: SingleArgOrCollection<P>,
fn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>where
P: Into<BulkString> + Send + 'a,
PP: SingleArgOrCollection<P>,
sourcefn publish<C, M>(
&mut self,
channel: C,
message: M
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
C: Into<BulkString>,
M: Into<BulkString>,
fn publish<C, M>(
&mut self,
channel: C,
message: M
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
C: Into<BulkString>,
M: Into<BulkString>,
sourcefn pub_sub_channels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromValue,
CC: FromSingleValueArray<C>,
fn pub_sub_channels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromValue,
CC: FromSingleValueArray<C>,
sourcefn pub_sub_numpat(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn pub_sub_numpat(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
sourcefn pub_sub_numsub<C, CC, R, RR>(
&mut self,
channels: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<BulkString>,
CC: SingleArgOrCollection<C>,
R: FromValue,
RR: FromKeyValueValueArray<R, usize>,
fn pub_sub_numsub<C, CC, R, RR>(
&mut self,
channels: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<BulkString>,
CC: SingleArgOrCollection<C>,
R: FromValue,
RR: FromKeyValueValueArray<R, usize>,
sourceimpl ScriptingCommands for MultiplexedClient
impl ScriptingCommands for MultiplexedClient
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,
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,
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,
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,
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>,
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,
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,
sourcefn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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,
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,
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>,
sourcefn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
fn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
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,
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>,
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,
sourcefn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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,
sourceimpl SentinelCommands for MultiplexedClient
impl SentinelCommands for MultiplexedClient
sourcefn sentinel_get_master_addr_by_name<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Option<(String, u16)>>where
Self: Sized,
N: Into<BulkString>,
fn sentinel_get_master_addr_by_name<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Option<(String, u16)>>where
Self: Sized,
N: Into<BulkString>,
sourcefn sentinel_failover<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<BulkString>,
fn sentinel_failover<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<BulkString>,
sourceimpl ServerCommands for MultiplexedClient
impl ServerCommands for MultiplexedClient
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>,
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>,
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,
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,
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>,
sourcefn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
sourcefn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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>,
sourcefn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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>,
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>,
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,
sourcefn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
sourcefn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
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>,
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>,
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>>,
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>,
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>,
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>,
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,
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>,
sourcefn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
sourcefn failover(&mut self, options: FailOverOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn failover(&mut self, options: FailOverOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn flushdb(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushdb(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn flushall(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushall(
&mut self,
flushing_mode: FlushingMode
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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>,
sourcefn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
sourcefn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
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,
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>,
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)>,
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)>,
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>,
sourcefn lolwut(&mut self, options: LolWutOptions) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn lolwut(&mut self, options: LolWutOptions) -> PreparedCommand<'_, Self, String>where
Self: Sized,
sourcefn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
sourcefn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
sourcefn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
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>,
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>,
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>,
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>,
sourcefn replicaof(
&mut self,
options: ReplicaOfOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn replicaof(
&mut self,
options: ReplicaOfOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
master
, slave
, or sentinel
. Read moresourcefn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourcefn shutdown(&mut self, options: ShutdownOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn shutdown(&mut self, options: ShutdownOptions) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
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,
sourcefn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
sourcefn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
sourceimpl SetCommands for MultiplexedClient
impl SetCommands for MultiplexedClient
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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,
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>,
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 MultiplexedClient
impl SortedSetCommands for MultiplexedClient
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)>,
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>,
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>,
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>,
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,
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,
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>,
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>,
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,
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,
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>,
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>,
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,
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>,
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,
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,
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,
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,
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,
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,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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,
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>,
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,
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,
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>,
sourceimpl StreamCommands for MultiplexedClient
impl StreamCommands for MultiplexedClient
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>,
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,
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,
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,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
key
. Read more