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§
Source§impl 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 ofCommandArg
.
§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§
Source§impl BitmapCommands for MultiplexedClient
impl BitmapCommands for MultiplexedClient
Source§fn bitcount<K>(
&mut self,
key: K,
range: BitRange,
) -> PreparedCommand<'_, Self, usize>
fn bitcount<K>( &mut self, key: K, range: BitRange, ) -> PreparedCommand<'_, Self, usize>
Source§fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
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<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<BitFieldSubCommand<E, O>>,
Source§fn bitfield_readonly<K, C, E, O>(
&mut self,
key: K,
get_commands: C,
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: Into<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
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<CommandArg>,
E: Into<CommandArg>,
O: Into<CommandArg>,
C: ArgsOrCollection<BitFieldGetSubCommand<E, O>>,
Source§fn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK,
) -> PreparedCommand<'_, Self, usize>
fn bitop<D, K, KK>( &mut self, operation: BitOperation, dest_key: D, keys: KK, ) -> PreparedCommand<'_, Self, usize>
Source§fn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange,
) -> PreparedCommand<'_, Self, usize>
fn bitpos<K>( &mut self, key: K, bit: u64, range: BitRange, ) -> PreparedCommand<'_, Self, usize>
Source§impl ClientTrait for MultiplexedClient
impl ClientTrait for MultiplexedClient
Source§impl Clone for MultiplexedClient
impl Clone for MultiplexedClient
Source§fn clone(&self) -> MultiplexedClient
fn clone(&self) -> MultiplexedClient
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ClusterCommands for MultiplexedClient
impl ClusterCommands for MultiplexedClient
Source§fn asking(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn asking(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn cluster_addslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>
fn cluster_addslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>
Source§fn cluster_addslotsrange<S>(
&mut self,
slots: S,
) -> PreparedCommand<'_, Self, ()>
fn cluster_addslotsrange<S>( &mut self, slots: S, ) -> PreparedCommand<'_, Self, ()>
cluster_addslots
command in that they both assign hash slots to nodes. Read moreSource§fn cluster_bumpepoch(
&mut self,
) -> PreparedCommand<'_, Self, ClusterBumpEpochResult>where
Self: Sized,
fn cluster_bumpepoch(
&mut self,
) -> PreparedCommand<'_, Self, ClusterBumpEpochResult>where
Self: Sized,
Source§fn cluster_count_failure_reports<I>(
&mut self,
node_id: I,
) -> PreparedCommand<'_, Self, usize>
fn cluster_count_failure_reports<I>( &mut self, node_id: I, ) -> PreparedCommand<'_, Self, usize>
Source§fn 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,
Source§fn cluster_delslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>
fn cluster_delslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>
Source§fn cluster_delslotsrange<S>(
&mut self,
slots: S,
) -> PreparedCommand<'_, Self, ()>
fn cluster_delslotsrange<S>( &mut self, slots: S, ) -> PreparedCommand<'_, Self, ()>
cluster_delslotsrange
command in that they both remove hash slots from the node. Read moreSource§fn cluster_failover(
&mut self,
option: ClusterFailoverOption,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_failover(
&mut self,
option: ClusterFailoverOption,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn cluster_flushslots(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cluster_flushslots(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn cluster_forget<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>
fn cluster_forget<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>
Source§fn 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,
Source§fn 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,
Source§fn cluster_keyslot<K>(&mut self, key: K) -> PreparedCommand<'_, Self, u16>
fn cluster_keyslot<K>(&mut self, key: K) -> PreparedCommand<'_, Self, u16>
Source§fn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>
fn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>
Source§fn cluster_meet<IP>(
&mut self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>,
) -> PreparedCommand<'_, Self, ()>
fn cluster_meet<IP>( &mut self, ip: IP, port: u16, cluster_bus_port: Option<u16>, ) -> PreparedCommand<'_, Self, ()>
Source§fn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>
fn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>
Source§fn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>
fn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>
Source§fn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>
fn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>
Source§fn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>
fn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>
Source§fn 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,
Source§fn 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 moreSource§fn 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,
Source§fn 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,
Source§fn cluster_shards<S>(&mut self) -> PreparedCommand<'_, Self, S>
fn cluster_shards<S>(&mut self) -> PreparedCommand<'_, Self, S>
Source§impl ConnectionCommands for MultiplexedClient
impl ConnectionCommands for MultiplexedClient
Source§fn auth<U, P>(
&mut self,
username: Option<U>,
password: P,
) -> PreparedCommand<'_, Self, ()>
fn auth<U, P>( &mut self, username: Option<U>, password: P, ) -> PreparedCommand<'_, Self, ()>
Source§fn 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,
Source§fn client_getname<CN>(&mut self) -> PreparedCommand<'_, Self, Option<CN>>
fn client_getname<CN>(&mut self) -> PreparedCommand<'_, Self, Option<CN>>
Source§fn client_getredir(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
fn client_getredir(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
Source§fn client_id(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
fn client_id(&mut self) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
Source§fn client_info(&mut self) -> PreparedCommand<'_, Self, ClientInfo>where
Self: Sized,
fn client_info(&mut self) -> PreparedCommand<'_, Self, ClientInfo>where
Self: Sized,
Source§fn 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,
Source§fn 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,
Source§fn 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 moreSource§fn 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,
Source§fn client_reply(
&mut self,
mode: ClientReplyMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn client_reply(
&mut self,
mode: ClientReplyMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn client_setname<CN>(
&mut self,
connection_name: CN,
) -> PreparedCommand<'_, Self, ()>
fn client_setname<CN>( &mut self, connection_name: CN, ) -> PreparedCommand<'_, Self, ()>
Source§fn 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 moreSource§fn 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 moreSource§fn 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 moreSource§fn client_unpause(&mut self) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn client_unpause(&mut self) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
client_pause
. Read moreSource§fn echo<M, R>(&mut self, message: M) -> PreparedCommand<'_, Self, R>
fn echo<M, R>(&mut self, message: M) -> PreparedCommand<'_, Self, R>
message
. Read moreSource§fn hello(
&mut self,
options: HelloOptions,
) -> PreparedCommand<'_, Self, HelloResult>where
Self: Sized,
fn hello(
&mut self,
options: HelloOptions,
) -> PreparedCommand<'_, Self, HelloResult>where
Self: Sized,
Source§fn ping<R>(&mut self, options: PingOptions) -> PreparedCommand<'_, Self, R>
fn ping<R>(&mut self, options: PingOptions) -> PreparedCommand<'_, Self, R>
Source§fn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§impl GenericCommands for MultiplexedClient
impl GenericCommands for MultiplexedClient
Source§fn copy<S, D>(
&mut self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool,
) -> PreparedCommand<'_, Self, bool>
fn copy<S, D>( &mut self, source: S, destination: D, destination_db: Option<usize>, replace: bool, ) -> PreparedCommand<'_, Self, bool>
Source§fn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>
fn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>
Source§fn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>
fn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>
Source§fn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>
fn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>
Source§fn expire<K>(
&mut self,
key: K,
seconds: u64,
option: ExpireOption,
) -> PreparedCommand<'_, Self, bool>
fn expire<K>( &mut self, key: K, seconds: u64, option: ExpireOption, ) -> PreparedCommand<'_, Self, bool>
Source§fn expireat<K>(
&mut self,
key: K,
unix_time_seconds: u64,
option: ExpireOption,
) -> PreparedCommand<'_, Self, bool>
fn expireat<K>( &mut self, key: K, unix_time_seconds: u64, option: ExpireOption, ) -> PreparedCommand<'_, Self, bool>
Source§fn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
Source§fn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>
fn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>
Source§fn migrate<H, K>(
&mut self,
host: H,
port: u16,
key: K,
destination_db: usize,
timeout: u64,
options: MigrateOptions,
) -> PreparedCommand<'_, Self, MigrateResult>
fn migrate<H, K>( &mut self, host: H, port: u16, key: K, destination_db: usize, timeout: u64, options: MigrateOptions, ) -> PreparedCommand<'_, Self, MigrateResult>
Source§fn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>
fn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>
Source§fn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>
fn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>
key
Read moreSource§fn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
key
. Read moreSource§fn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
key
. Read moreSource§fn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
key
. Read moreSource§fn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>
fn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>
Source§fn pexpire<K>(
&mut self,
key: K,
milliseconds: u64,
option: ExpireOption,
) -> PreparedCommand<'_, Self, bool>
fn pexpire<K>( &mut self, key: K, milliseconds: u64, option: ExpireOption, ) -> PreparedCommand<'_, Self, bool>
Source§fn pexpireat<K>(
&mut self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption,
) -> PreparedCommand<'_, Self, bool>
fn pexpireat<K>( &mut self, key: K, unix_time_milliseconds: u64, option: ExpireOption, ) -> PreparedCommand<'_, Self, bool>
Source§fn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
Source§fn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
Source§fn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>
fn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>
Source§fn rename<K1, K2>(
&mut self,
key: K1,
new_key: K2,
) -> PreparedCommand<'_, Self, ()>
fn rename<K1, K2>( &mut self, key: K1, new_key: K2, ) -> PreparedCommand<'_, Self, ()>
Source§fn renamenx<K1, K2>(
&mut self,
key: K1,
new_key: K2,
) -> PreparedCommand<'_, Self, bool>
fn renamenx<K1, K2>( &mut self, key: K1, new_key: K2, ) -> PreparedCommand<'_, Self, bool>
Source§fn restore<K>(
&mut self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions,
) -> PreparedCommand<'_, Self, ()>
fn restore<K>( &mut self, key: K, ttl: u64, serialized_value: Vec<u8>, options: RestoreOptions, ) -> PreparedCommand<'_, Self, ()>
Source§fn scan<K, A>(
&mut self,
cursor: u64,
options: ScanOptions,
) -> PreparedCommand<'_, Self, (u64, A)>
fn scan<K, A>( &mut self, cursor: u64, options: ScanOptions, ) -> PreparedCommand<'_, Self, (u64, A)>
Source§fn sort<K, M, A>(
&mut self,
key: K,
options: SortOptions,
) -> PreparedCommand<'_, Self, A>
fn sort<K, M, A>( &mut self, key: K, options: SortOptions, ) -> PreparedCommand<'_, Self, A>
Source§fn sort_and_store<K, D>(
&mut self,
key: K,
destination: D,
options: SortOptions,
) -> PreparedCommand<'_, Self, usize>
fn sort_and_store<K, D>( &mut self, key: K, destination: D, options: SortOptions, ) -> PreparedCommand<'_, Self, usize>
Source§fn sort_readonly<K, M, A>(
&mut self,
key: K,
options: SortOptions,
) -> PreparedCommand<'_, Self, A>
fn sort_readonly<K, M, A>( &mut self, key: K, options: SortOptions, ) -> PreparedCommand<'_, Self, A>
Source§fn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>
fn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>
Source§fn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
fn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>
Source§fn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>
fn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>
Source§impl GeoCommands for MultiplexedClient
impl GeoCommands for MultiplexedClient
Source§fn geoadd<K, M, I>(
&mut self,
key: K,
condition: GeoAddCondition,
change: bool,
items: I,
) -> PreparedCommand<'_, Self, usize>
fn geoadd<K, M, I>( &mut self, key: K, condition: GeoAddCondition, change: bool, items: I, ) -> PreparedCommand<'_, Self, usize>
Source§fn geodist<K, M>(
&mut self,
key: K,
member1: M,
member2: M,
unit: GeoUnit,
) -> PreparedCommand<'_, Self, Option<f64>>
fn geodist<K, M>( &mut self, key: K, member1: M, member2: M, unit: GeoUnit, ) -> PreparedCommand<'_, Self, Option<f64>>
Source§fn geohash<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, Vec<String>>
fn geohash<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, Vec<String>>
Source§fn geopos<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>
fn geopos<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>
Source§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<CommandArg>,
M1: Into<CommandArg>,
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<CommandArg>,
M1: Into<CommandArg>,
M2: FromValue,
A: FromSingleValueArray<GeoSearchResult<M2>>,
Source§fn geosearchstore<D, S, M>(
&mut self,
destination: D,
source: S,
from: GeoSearchFrom<M>,
by: GeoSearchBy,
options: GeoSearchStoreOptions,
) -> PreparedCommand<'_, Self, usize>
fn geosearchstore<D, S, M>( &mut self, destination: D, source: S, from: GeoSearchFrom<M>, by: GeoSearchBy, options: GeoSearchStoreOptions, ) -> PreparedCommand<'_, Self, usize>
Source§impl HashCommands for MultiplexedClient
impl HashCommands for MultiplexedClient
Source§fn hdel<K, F, C>(
&mut self,
key: K,
fields: C,
) -> PreparedCommand<'_, Self, usize>
fn hdel<K, F, C>( &mut self, key: K, fields: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>
fn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>
Source§fn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>
fn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>
Source§fn hgetall<K, F, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
Source§fn hincrby<K, F>(
&mut self,
key: K,
field: F,
increment: i64,
) -> PreparedCommand<'_, Self, i64>
fn hincrby<K, F>( &mut self, key: K, field: F, increment: i64, ) -> PreparedCommand<'_, Self, i64>
Source§fn hincrbyfloat<K, F>(
&mut self,
key: K,
field: F,
increment: f64,
) -> PreparedCommand<'_, Self, f64>
fn hincrbyfloat<K, F>( &mut self, key: K, field: F, increment: f64, ) -> PreparedCommand<'_, Self, f64>
Source§fn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
fn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
Source§fn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
fn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
Source§fn hmget<K, F, V, C, A>(
&mut self,
key: K,
fields: C,
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
F: Into<CommandArg>,
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<CommandArg>,
F: Into<CommandArg>,
C: SingleArgOrCollection<F>,
V: FromValue,
A: FromSingleValueArray<V>,
Source§fn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>
fn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>
Source§fn hrandfields<K, F, A>(
&mut self,
key: K,
count: isize,
) -> PreparedCommand<'_, Self, A>
fn hrandfields<K, F, A>( &mut self, key: K, count: isize, ) -> PreparedCommand<'_, Self, A>
Source§fn hrandfields_with_values<K, F, V, A>(
&mut self,
key: K,
count: isize,
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
F: FromValue,
V: FromValue,
A: FromKeyValueValueArray<F, V>,
Source§fn hscan<K, F, V>(
&mut self,
key: K,
cursor: u64,
options: HScanOptions,
) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>
fn hscan<K, F, V>( &mut self, key: K, cursor: u64, options: HScanOptions, ) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>
Source§fn hset<K, F, V, I>(
&mut self,
key: K,
items: I,
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<CommandArg>,
F: Into<CommandArg>,
V: Into<CommandArg>,
I: KeyValueArgOrCollection<F, V>,
fn hset<K, F, V, I>(
&mut self,
key: K,
items: I,
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<CommandArg>,
F: Into<CommandArg>,
V: Into<CommandArg>,
I: KeyValueArgOrCollection<F, V>,
Source§fn hsetnx<K, F, V>(
&mut self,
key: K,
field: F,
value: V,
) -> PreparedCommand<'_, Self, bool>
fn hsetnx<K, F, V>( &mut self, key: K, field: F, value: V, ) -> PreparedCommand<'_, Self, bool>
Source§fn hstrlen<K, F>(
&mut self,
key: K,
field: F,
) -> PreparedCommand<'_, Self, usize>
fn hstrlen<K, F>( &mut self, key: K, field: F, ) -> PreparedCommand<'_, Self, usize>
Source§fn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
fn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
Source§impl HyperLogLogCommands for MultiplexedClient
impl HyperLogLogCommands for MultiplexedClient
Source§fn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE,
) -> PreparedCommand<'_, Self, bool>
fn pfadd<K, E, EE>( &mut self, key: K, elements: EE, ) -> PreparedCommand<'_, Self, bool>
Source§fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>
fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>
Source§impl ListCommands for MultiplexedClient
impl ListCommands for MultiplexedClient
Source§fn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>
fn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>
Source§fn linsert<K, E>(
&mut self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E,
) -> PreparedCommand<'_, Self, usize>
fn linsert<K, E>( &mut self, key: K, where_: LInsertWhere, pivot: E, element: E, ) -> PreparedCommand<'_, Self, usize>
Source§fn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
fn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
Source§fn lmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere,
) -> PreparedCommand<'_, Self, E>
fn lmove<S, D, E>( &mut self, source: S, destination: D, where_from: LMoveWhere, where_to: LMoveWhere, ) -> PreparedCommand<'_, Self, E>
Source§fn lmpop<K, E, C>(
&mut self,
keys: C,
where_: LMoveWhere,
count: usize,
) -> PreparedCommand<'_, Self, (String, Vec<E>)>
fn lmpop<K, E, C>( &mut self, keys: C, where_: LMoveWhere, count: usize, ) -> PreparedCommand<'_, Self, (String, Vec<E>)>
Source§fn lpop<K, E, A>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, A>
fn lpop<K, E, A>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, A>
Source§fn lpos<K, E>(
&mut self,
key: K,
element: E,
rank: Option<usize>,
max_len: Option<usize>,
) -> PreparedCommand<'_, Self, Option<usize>>
fn lpos<K, E>( &mut self, key: K, element: E, rank: Option<usize>, max_len: Option<usize>, ) -> PreparedCommand<'_, Self, Option<usize>>
Source§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>
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>
Source§fn lpush<K, E, C>(
&mut self,
key: K,
elements: C,
) -> PreparedCommand<'_, Self, usize>
fn lpush<K, E, C>( &mut self, key: K, elements: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn lpushx<K, E, C>(
&mut self,
key: K,
elements: C,
) -> PreparedCommand<'_, Self, usize>
fn lpushx<K, E, C>( &mut self, key: K, elements: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn lrange<K, E, A>(
&mut self,
key: K,
start: isize,
stop: isize,
) -> PreparedCommand<'_, Self, A>
fn lrange<K, E, A>( &mut self, key: K, start: isize, stop: isize, ) -> PreparedCommand<'_, Self, A>
Source§fn lrem<K, E>(
&mut self,
key: K,
count: isize,
element: E,
) -> PreparedCommand<'_, Self, usize>
fn lrem<K, E>( &mut self, key: K, count: isize, element: E, ) -> PreparedCommand<'_, Self, usize>
Source§fn lset<K, E>(
&mut self,
key: K,
index: isize,
element: E,
) -> PreparedCommand<'_, Self, ()>
fn lset<K, E>( &mut self, key: K, index: isize, element: E, ) -> PreparedCommand<'_, Self, ()>
Source§fn ltrim<K>(
&mut self,
key: K,
start: isize,
stop: isize,
) -> PreparedCommand<'_, Self, ()>
fn ltrim<K>( &mut self, key: K, start: isize, stop: isize, ) -> PreparedCommand<'_, Self, ()>
Source§fn rpop<K, E, C>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, C>
fn rpop<K, E, C>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, C>
Source§fn rpush<K, E, C>(
&mut self,
key: K,
elements: C,
) -> PreparedCommand<'_, Self, usize>
fn rpush<K, E, C>( &mut self, key: K, elements: C, ) -> PreparedCommand<'_, Self, usize>
Source§impl PubSubCommands for MultiplexedClient
impl PubSubCommands for MultiplexedClient
Source§fn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>
fn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>
Source§fn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>
fn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>
Source§fn ssubscribe<'a, C, CC>(
&'a mut self,
shardchannels: CC,
) -> Future<'a, PubSubStream>
fn ssubscribe<'a, C, CC>( &'a mut self, shardchannels: CC, ) -> Future<'a, PubSubStream>
Source§fn publish<C, M>(
&mut self,
channel: C,
message: M,
) -> PreparedCommand<'_, Self, usize>
fn publish<C, M>( &mut self, channel: C, message: M, ) -> PreparedCommand<'_, Self, usize>
Source§fn pub_sub_channels<C, CC>(
&mut self,
options: PubSubChannelsOptions,
) -> PreparedCommand<'_, Self, CC>
fn pub_sub_channels<C, CC>( &mut self, options: PubSubChannelsOptions, ) -> PreparedCommand<'_, Self, CC>
Source§fn pub_sub_numpat(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn pub_sub_numpat(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Source§fn pub_sub_numsub<C, CC, R, RR>(
&mut self,
channels: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
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<CommandArg>,
CC: SingleArgOrCollection<C>,
R: FromValue,
RR: FromKeyValueValueArray<R, usize>,
Source§fn pub_sub_shardchannels<C, CC>(
&mut self,
options: PubSubChannelsOptions,
) -> PreparedCommand<'_, Self, CC>
fn pub_sub_shardchannels<C, CC>( &mut self, options: PubSubChannelsOptions, ) -> PreparedCommand<'_, Self, CC>
Source§fn pub_sub_shardnumsub<C, CC, R, RR>(
&mut self,
channels: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
CC: SingleArgOrCollection<C>,
R: FromValue,
RR: FromKeyValueValueArray<R, usize>,
fn pub_sub_shardnumsub<C, CC, R, RR>(
&mut self,
channels: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
CC: SingleArgOrCollection<C>,
R: FromValue,
RR: FromKeyValueValueArray<R, usize>,
Source§impl ScriptingCommands for MultiplexedClient
impl ScriptingCommands for MultiplexedClient
Source§fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Source§fn eval_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn eval_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Source§fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Source§fn evalsha_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn evalsha_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Source§fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>
Source§fn fcall_readonly<R>(
&mut self,
builder: CallBuilder,
) -> PreparedCommand<'_, Self, R>
fn fcall_readonly<R>( &mut self, builder: CallBuilder, ) -> PreparedCommand<'_, Self, R>
Source§fn function_delete<L>(
&mut self,
library_name: L,
) -> PreparedCommand<'_, Self, ()>
fn function_delete<L>( &mut self, library_name: L, ) -> PreparedCommand<'_, Self, ()>
Source§fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>
fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>
function_restore
command. Read moreSource§fn 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,
Source§fn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn function_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn 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,
Source§fn function_load<F, L>(
&mut self,
replace: bool,
function_code: F,
) -> PreparedCommand<'_, Self, L>
fn function_load<F, L>( &mut self, replace: bool, function_code: F, ) -> PreparedCommand<'_, Self, L>
Source§fn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'_, Self, ()>
fn function_restore<P>( &mut self, serialized_payload: P, policy: FunctionRestorePolicy, ) -> PreparedCommand<'_, Self, ()>
Source§fn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
fn function_stats(&mut self) -> PreparedCommand<'_, Self, FunctionStats>where
Self: Sized,
Source§fn 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,
Source§fn script_exists<S, C>(
&mut self,
sha1s: C,
) -> PreparedCommand<'_, Self, Vec<bool>>
fn script_exists<S, C>( &mut self, sha1s: C, ) -> PreparedCommand<'_, Self, Vec<bool>>
Source§fn 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,
Source§fn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn script_kill(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>
fn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>
Source§impl SentinelCommands for MultiplexedClient
impl SentinelCommands for MultiplexedClient
Source§fn sentinel_config_get<N, RN, RV, R>(
&mut self,
name: N,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: Into<CommandArg>,
RN: FromValue,
RV: FromValue,
R: FromKeyValueValueArray<RN, RV>,
fn sentinel_config_get<N, RN, RV, R>(
&mut self,
name: N,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: Into<CommandArg>,
RN: FromValue,
RV: FromValue,
R: FromKeyValueValueArray<RN, RV>,
Source§fn sentinel_config_set<N, V>(
&mut self,
name: N,
value: V,
) -> PreparedCommand<'_, Self, ()>
fn sentinel_config_set<N, V>( &mut self, name: N, value: V, ) -> PreparedCommand<'_, Self, ()>
Source§fn sentinel_ckquorum<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, ()>
fn sentinel_ckquorum<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, ()>
Source§fn sentinel_failover<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, ()>
fn sentinel_failover<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, ()>
Source§fn sentinel_flushconfig(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn sentinel_flushconfig(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn sentinel_get_master_addr_by_name<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, Option<(String, u16)>>
fn sentinel_get_master_addr_by_name<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, Option<(String, u16)>>
Source§fn sentinel_info_cache<N, NN, R>(
&mut self,
master_names: NN,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: Into<CommandArg>,
NN: ArgsOrCollection<N>,
R: FromKeyValueValueArray<String, Vec<(u64, String)>>,
fn sentinel_info_cache<N, NN, R>(
&mut self,
master_names: NN,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: Into<CommandArg>,
NN: ArgsOrCollection<N>,
R: FromKeyValueValueArray<String, Vec<(u64, String)>>,
info
output from masters and replicas.Source§fn sentinel_master<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, SentinelMasterInfo>
fn sentinel_master<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, SentinelMasterInfo>
Source§fn sentinel_masters(
&mut self,
) -> PreparedCommand<'_, Self, Vec<SentinelMasterInfo>>where
Self: Sized,
fn sentinel_masters(
&mut self,
) -> PreparedCommand<'_, Self, Vec<SentinelMasterInfo>>where
Self: Sized,
Source§fn sentinel_monitor<N, I>(
&mut self,
name: N,
ip: I,
port: u16,
quorum: usize,
) -> PreparedCommand<'_, Self, ()>
fn sentinel_monitor<N, I>( &mut self, name: N, ip: I, port: u16, quorum: usize, ) -> PreparedCommand<'_, Self, ()>
Source§fn sentinel_remove<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
fn sentinel_remove<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
Source§fn sentinel_set<N, O, V, C>(
&mut self,
name: N,
configs: C,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<CommandArg>,
O: Into<CommandArg>,
V: Into<CommandArg>,
C: KeyValueArgOrCollection<O, V>,
fn sentinel_set<N, O, V, C>(
&mut self,
name: N,
configs: C,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: Into<CommandArg>,
O: Into<CommandArg>,
V: Into<CommandArg>,
C: KeyValueArgOrCollection<O, V>,
config_set
command of Redis,
and is used in order to change configuration parameters of a specific master. Read moreSource§fn sentinel_myid(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn sentinel_myid(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Source§fn sentinel_pending_scripts(&mut self) -> PreparedCommand<'_, Self, Vec<Value>>where
Self: Sized,
fn sentinel_pending_scripts(&mut self) -> PreparedCommand<'_, Self, Vec<Value>>where
Self: Sized,
Source§fn sentinel_replicas<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, Vec<SentinelReplicaInfo>>
fn sentinel_replicas<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, Vec<SentinelReplicaInfo>>
Source§fn sentinel_reset<P>(&mut self, pattern: P) -> PreparedCommand<'_, Self, usize>
fn sentinel_reset<P>(&mut self, pattern: P) -> PreparedCommand<'_, Self, usize>
Source§fn sentinel_sentinels<N>(
&mut self,
master_name: N,
) -> PreparedCommand<'_, Self, Vec<SentinelInfo>>
fn sentinel_sentinels<N>( &mut self, master_name: N, ) -> PreparedCommand<'_, Self, Vec<SentinelInfo>>
Source§fn sentinel_simulate_failure(
&mut self,
mode: SentinelSimulateFailureMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn sentinel_simulate_failure(
&mut self,
mode: SentinelSimulateFailureMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§impl ServerCommands for MultiplexedClient
impl ServerCommands for MultiplexedClient
Source§fn acl_cat<C, CC>(
&mut self,
options: AclCatOptions,
) -> PreparedCommand<'_, Self, CC>
fn acl_cat<C, CC>( &mut self, options: AclCatOptions, ) -> PreparedCommand<'_, Self, CC>
Source§fn acl_deluser<U, UU>(
&mut self,
usernames: UU,
) -> PreparedCommand<'_, Self, usize>
fn acl_deluser<U, UU>( &mut self, usernames: UU, ) -> PreparedCommand<'_, Self, usize>
Source§fn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions,
) -> PreparedCommand<'_, Self, R>
fn acl_dryrun<U, C, R>( &mut self, username: U, command: C, options: AclDryRunOptions, ) -> PreparedCommand<'_, Self, R>
Source§fn 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,
Source§fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>
fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>
Source§fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
Source§fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn acl_log<EE>(
&mut self,
options: AclLogOptions,
) -> PreparedCommand<'_, Self, Vec<EE>>
fn acl_log<EE>( &mut self, options: AclLogOptions, ) -> PreparedCommand<'_, Self, Vec<EE>>
Source§fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR,
) -> PreparedCommand<'_, Self, ()>
fn acl_setuser<U, R, RR>( &mut self, username: U, rules: RR, ) -> PreparedCommand<'_, Self, ()>
Source§fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>
fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>
Source§fn 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,
Source§fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
Source§fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Source§fn command_docs<N, NN, DD>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: Into<CommandArg>,
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<CommandArg>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc>,
Source§fn command_getkeys<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
fn command_getkeys<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
Source§fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
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<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>>,
Source§fn command_info<N, NN>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
fn command_info<N, NN>( &mut self, command_names: NN, ) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
Source§fn command_list<CC>(
&mut self,
options: CommandListOptions,
) -> PreparedCommand<'_, Self, CC>
fn command_list<CC>( &mut self, options: CommandListOptions, ) -> PreparedCommand<'_, Self, CC>
Source§fn config_get<P, PP, V, VV>(
&mut self,
params: PP,
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: Into<CommandArg>,
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<CommandArg>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V>,
Source§fn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
config_set
command. Read moreSource§fn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>
fn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>
Source§fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Source§fn failover(
&mut self,
options: FailOverOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn failover(
&mut self,
options: FailOverOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn flushdb(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushdb(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn flushall(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushall(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>
fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>
Source§fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
Source§fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Source§fn 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,
Source§fn latency_histogram<C, CC, RR>(
&mut self,
commands: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
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<CommandArg>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram>,
Source§fn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, RR>
fn latency_history<RR>( &mut self, event: LatencyHistoryEvent, ) -> PreparedCommand<'_, Self, RR>
Source§fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>
fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>
Source§fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>
fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>
Source§fn lolwut(
&mut self,
options: LolWutOptions,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn lolwut(
&mut self,
options: LolWutOptions,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Source§fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Source§fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Source§fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
Source§fn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions,
) -> PreparedCommand<'_, Self, Option<usize>>
fn memory_usage<K>( &mut self, key: K, options: MemoryUsageOptions, ) -> PreparedCommand<'_, Self, Option<usize>>
Source§fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>
fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>
Source§fn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions,
) -> PreparedCommand<'_, Self, ()>
fn module_load<P>( &mut self, path: P, options: ModuleLoadOptions, ) -> PreparedCommand<'_, Self, ()>
Source§fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
Source§fn replicaof(
&mut self,
options: ReplicaOfOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn replicaof(
&mut self,
options: ReplicaOfOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
master
, slave
, or sentinel
. Read moreSource§fn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn shutdown(
&mut self,
options: ShutdownOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn shutdown(
&mut self,
options: ShutdownOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§fn 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,
Source§fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Source§fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Source§impl SetCommands for MultiplexedClient
impl SetCommands for MultiplexedClient
Source§fn sadd<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, usize>
fn sadd<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
fn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
Source§fn sdiff<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Source§fn sdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C,
) -> PreparedCommand<'_, Self, usize>
fn sdiffstore<D, K, C>( &mut self, destination: D, keys: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn sinter<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Source§fn sintercard<K, C>(
&mut self,
keys: C,
limit: usize,
) -> PreparedCommand<'_, Self, usize>
fn sintercard<K, C>( &mut self, keys: C, limit: usize, ) -> PreparedCommand<'_, Self, usize>
Source§fn sinterstore<D, K, C>(
&mut self,
destination: D,
keys: C,
) -> PreparedCommand<'_, Self, usize>
fn sinterstore<D, K, C>( &mut self, destination: D, keys: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn sismember<K, M>(
&mut self,
key: K,
member: M,
) -> PreparedCommand<'_, Self, bool>
fn sismember<K, M>( &mut self, key: K, member: M, ) -> PreparedCommand<'_, Self, bool>
Source§fn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
fn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>
Source§fn smismember<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, Vec<bool>>
fn smismember<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, Vec<bool>>
Source§fn smove<S, D, M>(
&mut self,
source: S,
destination: D,
member: M,
) -> PreparedCommand<'_, Self, bool>
fn smove<S, D, M>( &mut self, source: S, destination: D, member: M, ) -> PreparedCommand<'_, Self, bool>
Source§fn spop<K, M, A>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, A>
fn spop<K, M, A>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, A>
Source§fn srandmember<K, M, A>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, A>
fn srandmember<K, M, A>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, A>
Source§fn srem<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, usize>
fn srem<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn sscan<K, M>(
&mut self,
key: K,
cursor: u64,
options: SScanOptions,
) -> PreparedCommand<'_, Self, (u64, Vec<M>)>
fn sscan<K, M>( &mut self, key: K, cursor: u64, options: SScanOptions, ) -> PreparedCommand<'_, Self, (u64, Vec<M>)>
Source§fn sunion<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
M: FromValue + Eq + Hash,
C: SingleArgOrCollection<K>,
A: FromSingleValueArray<M>,
Source§fn sunionstore<D, K, C>(
&mut self,
destination: D,
keys: C,
) -> PreparedCommand<'_, Self, usize>
fn sunionstore<D, K, C>( &mut self, destination: D, keys: C, ) -> PreparedCommand<'_, Self, usize>
Source§impl SortedSetCommands for MultiplexedClient
impl SortedSetCommands for MultiplexedClient
Source§fn zadd<K, M, I>(
&mut self,
key: K,
items: I,
options: ZAddOptions,
) -> PreparedCommand<'_, Self, usize>
fn zadd<K, M, I>( &mut self, key: K, items: I, options: ZAddOptions, ) -> PreparedCommand<'_, Self, usize>
Source§fn zadd_incr<K, M>(
&mut self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M,
) -> PreparedCommand<'_, Self, Option<f64>>
fn zadd_incr<K, M>( &mut self, key: K, condition: ZAddCondition, comparison: ZAddComparison, change: bool, score: f64, member: M, ) -> PreparedCommand<'_, Self, Option<f64>>
Source§fn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
fn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>
Source§fn zcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2,
) -> PreparedCommand<'_, Self, usize>
fn zcount<K, M1, M2>( &mut self, key: K, min: M1, max: M2, ) -> PreparedCommand<'_, Self, usize>
Source§fn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>
fn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>
Source§fn zdiff_with_scores<K, C, E>(
&mut self,
keys: C,
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>
fn zdiff_with_scores<K, C, E>( &mut self, keys: C, ) -> PreparedCommand<'_, Self, Vec<(E, f64)>>
Source§fn zdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C,
) -> PreparedCommand<'_, Self, usize>
fn zdiffstore<D, K, C>( &mut self, destination: D, keys: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn zincrby<K, M>(
&mut self,
key: K,
increment: f64,
member: M,
) -> PreparedCommand<'_, Self, f64>
fn zincrby<K, M>( &mut self, key: K, increment: f64, member: M, ) -> PreparedCommand<'_, Self, f64>
Source§fn zinter<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate,
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
Source§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<CommandArg>,
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<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
Source§fn zintercard<K, C>(
&mut self,
keys: C,
limit: usize,
) -> PreparedCommand<'_, Self, usize>
fn zintercard<K, C>( &mut self, keys: C, limit: usize, ) -> PreparedCommand<'_, Self, usize>
Source§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<CommandArg>,
K: Into<CommandArg>,
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<CommandArg>,
K: Into<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
Source§fn zlexcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2,
) -> PreparedCommand<'_, Self, usize>
fn zlexcount<K, M1, M2>( &mut self, key: K, min: M1, max: M2, ) -> PreparedCommand<'_, Self, usize>
Source§fn zmpop<K, C, E>(
&mut self,
keys: C,
where_: ZWhere,
count: usize,
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>
fn zmpop<K, C, E>( &mut self, keys: C, where_: ZWhere, count: usize, ) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>
Source§fn zmscore<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, Vec<Option<f64>>>
fn zmscore<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, Vec<Option<f64>>>
Source§fn zpopmax<K, M>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>
fn zpopmax<K, M>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, Vec<(M, f64)>>
Source§fn zpopmin<K, M>(
&mut self,
key: K,
count: usize,
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>
fn zpopmin<K, M>( &mut self, key: K, count: usize, ) -> PreparedCommand<'_, Self, Vec<(M, f64)>>
Source§fn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>
fn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>
Source§fn zrandmembers<K, E>(
&mut self,
key: K,
count: isize,
) -> PreparedCommand<'_, Self, Vec<E>>
fn zrandmembers<K, E>( &mut self, key: K, count: isize, ) -> PreparedCommand<'_, Self, Vec<E>>
Source§fn zrandmembers_with_scores<K, E>(
&mut self,
key: K,
count: isize,
) -> PreparedCommand<'_, Self, Vec<E>>
fn zrandmembers_with_scores<K, E>( &mut self, key: K, count: isize, ) -> PreparedCommand<'_, Self, Vec<E>>
Source§fn zrange<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions,
) -> PreparedCommand<'_, Self, Vec<E>>
fn zrange<K, S, E>( &mut self, key: K, start: S, stop: S, options: ZRangeOptions, ) -> PreparedCommand<'_, Self, Vec<E>>
key
. Read moreSource§fn zrange_with_scores<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions,
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>
fn zrange_with_scores<K, S, E>( &mut self, key: K, start: S, stop: S, options: ZRangeOptions, ) -> PreparedCommand<'_, Self, Vec<(E, f64)>>
key
. Read moreSource§fn zrangestore<D, S, SS>(
&mut self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions,
) -> PreparedCommand<'_, Self, usize>
fn zrangestore<D, S, SS>( &mut self, dst: D, src: S, start: SS, stop: SS, options: ZRangeOptions, ) -> PreparedCommand<'_, Self, usize>
Source§fn zrank<K, M>(
&mut self,
key: K,
member: M,
) -> PreparedCommand<'_, Self, Option<usize>>
fn zrank<K, M>( &mut self, key: K, member: M, ) -> PreparedCommand<'_, Self, Option<usize>>
Source§fn zrem<K, M, C>(
&mut self,
key: K,
members: C,
) -> PreparedCommand<'_, Self, usize>
fn zrem<K, M, C>( &mut self, key: K, members: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn zremrangebylex<K, S>(
&mut self,
key: K,
start: S,
stop: S,
) -> PreparedCommand<'_, Self, usize>
fn zremrangebylex<K, S>( &mut self, key: K, start: S, stop: S, ) -> PreparedCommand<'_, Self, usize>
Source§fn zremrangebyrank<K>(
&mut self,
key: K,
start: isize,
stop: isize,
) -> PreparedCommand<'_, Self, usize>
fn zremrangebyrank<K>( &mut self, key: K, start: isize, stop: isize, ) -> PreparedCommand<'_, Self, usize>
Source§fn zremrangebyscore<K, S>(
&mut self,
key: K,
start: S,
stop: S,
) -> PreparedCommand<'_, Self, usize>
fn zremrangebyscore<K, S>( &mut self, key: K, start: S, stop: S, ) -> PreparedCommand<'_, Self, usize>
Source§fn zrevrank<K, M>(
&mut self,
key: K,
member: M,
) -> PreparedCommand<'_, Self, Option<usize>>
fn zrevrank<K, M>( &mut self, key: K, member: M, ) -> PreparedCommand<'_, Self, Option<usize>>
Source§fn zscan<K, M>(
&mut self,
key: K,
cursor: usize,
options: ZScanOptions,
) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>
fn zscan<K, M>( &mut self, key: K, cursor: usize, options: ZScanOptions, ) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>
Source§fn zscore<K, M>(
&mut self,
key: K,
member: M,
) -> PreparedCommand<'_, Self, Option<f64>>
fn zscore<K, M>( &mut self, key: K, member: M, ) -> PreparedCommand<'_, Self, Option<f64>>
Source§fn zunion<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate,
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: Into<CommandArg>,
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<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
Source§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<CommandArg>,
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<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
Source§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<CommandArg>,
K: Into<CommandArg>,
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<CommandArg>,
K: Into<CommandArg>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
Source§impl StreamCommands for MultiplexedClient
impl StreamCommands for MultiplexedClient
Source§fn xack<K, G, I, II>(
&mut self,
key: K,
group: G,
ids: II,
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: Into<CommandArg>,
G: Into<CommandArg>,
I: Into<CommandArg>,
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<CommandArg>,
G: Into<CommandArg>,
I: Into<CommandArg>,
II: SingleArgOrCollection<I>,
Source§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<CommandArg>,
I: Into<CommandArg>,
F: Into<CommandArg>,
V: Into<CommandArg>,
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<CommandArg>,
I: Into<CommandArg>,
F: Into<CommandArg>,
V: Into<CommandArg>,
FFVV: KeyValueArgOrCollection<F, V>,
R: FromValue,
Source§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<CommandArg>,
G: Into<CommandArg>,
C: Into<CommandArg>,
I: Into<CommandArg>,
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<CommandArg>,
G: Into<CommandArg>,
C: Into<CommandArg>,
I: Into<CommandArg>,
V: FromValue,
Source§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<CommandArg>,
G: Into<CommandArg>,
C: Into<CommandArg>,
I: Into<CommandArg>,
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<CommandArg>,
G: Into<CommandArg>,
C: Into<CommandArg>,
I: Into<CommandArg>,
II: SingleArgOrCollection<I>,
V: FromValue,
Source§fn xdel<K, I, II>(
&mut self,
key: K,
ids: II,
) -> PreparedCommand<'_, Self, usize>
fn xdel<K, I, II>( &mut self, key: K, ids: II, ) -> PreparedCommand<'_, Self, usize>
Source§fn xgroup_create<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions,
) -> PreparedCommand<'_, Self, bool>
fn xgroup_create<K, G, I>( &mut self, key: K, groupname: G, id: I, options: XGroupCreateOptions, ) -> PreparedCommand<'_, Self, bool>
Source§fn xgroup_createconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C,
) -> PreparedCommand<'_, Self, bool>
fn xgroup_createconsumer<K, G, C>( &mut self, key: K, groupname: G, consumername: C, ) -> PreparedCommand<'_, Self, bool>
consumername
in the consumer group groupname`` of the stream that's stored at
key. Read moreSource§fn xgroup_delconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C,
) -> PreparedCommand<'_, Self, usize>
fn xgroup_delconsumer<K, G, C>( &mut self, key: K, groupname: G, consumername: C, ) -> PreparedCommand<'_, Self, usize>
Source§fn xgroup_destroy<K, G>(
&mut self,
key: K,
groupname: G,
) -> PreparedCommand<'_, Self, bool>
fn xgroup_destroy<K, G>( &mut self, key: K, groupname: G, ) -> PreparedCommand<'_, Self, bool>
Source§fn xgroup_setid<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>,
) -> PreparedCommand<'_, Self, ()>
fn xgroup_setid<K, G, I>( &mut self, key: K, groupname: G, id: I, entries_read: Option<usize>, ) -> PreparedCommand<'_, Self, ()>
Source§fn xinfo_consumers<K, G>(
&mut self,
key: K,
groupname: G,
) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>
fn xinfo_consumers<K, G>( &mut self, key: K, groupname: G, ) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>
groupname
consumer group of the stream stored at key
. Read moreSource§fn xinfo_groups<K>(
&mut self,
key: K,
) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>
fn xinfo_groups<K>( &mut self, key: K, ) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>
groupname
consumer group of the stream stored at key
. Read moreSource§fn xinfo_stream<K>(
&mut self,
key: K,
options: XInfoStreamOptions,
) -> PreparedCommand<'_, Self, XStreamInfo>
fn xinfo_stream<K>( &mut self, key: K, options: XInfoStreamOptions, ) -> PreparedCommand<'_, Self, XStreamInfo>
key
. Read more