pub struct Client { /* private fields */ }
Expand description
Client with a unique connection to a Redis server.
Implementations§
source§impl Client
impl Client
sourcepub async fn connect(config: impl IntoConfig) -> Result<Self>
pub async fn connect(config: impl IntoConfig) -> Result<Self>
sourcepub async fn close(self) -> Result<()>
pub async fn close(self) -> Result<()>
if this client is the last client on the shared connection, the channel to send messages to the underlying network handler will be closed explicitely.
Then, this function will await for the network handler to be ended
sourcepub fn on_reconnect(&self) -> Receiver<()>
pub fn on_reconnect(&self) -> Receiver<()>
Used to receive notifications when the client reconnects to the Redis server.
To turn this receiver into a Stream, you can use the
BroadcastStream
wrapper.
sourcepub fn get_client_state(&mut self) -> RwLockReadGuard<'_, ClientState>
pub fn get_client_state(&mut self) -> RwLockReadGuard<'_, ClientState>
Give an immutable generic access to attach any state to a client instance
sourcepub fn get_client_state_mut(&mut self) -> RwLockWriteGuard<'_, ClientState>
pub fn get_client_state_mut(&mut self) -> RwLockWriteGuard<'_, ClientState>
Give a mutable generic access to attach any state to a client instance
sourcepub async fn send(
&mut self,
command: Command,
retry_on_error: Option<bool>
) -> Result<Value>
pub async fn send(
&mut self,
command: Command,
retry_on_error: Option<bool>
) -> Result<Value>
Send an arbitrary command to the 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
command
- genericCommand
meant to be sent to the Redis server.retry_on_error
- retry to send the command on network error.None
- default behaviour defined inConfig::retry_on_error
Some(true)
- retry sending command on network errorSome(false)
- do not retry sending command on network error
Errors
Any Redis driver Error
that occurs during the send operation
Example
use rustis::{client::Client, resp::cmd, Result};
#[tokio::main]
async fn main() -> Result<()> {
let mut client = Client::connect("127.0.0.1:6379").await?;
let values: Vec<String> = client
.send(cmd("MGET").arg("key1").arg("key2").arg("key3").arg("key4"), None)
.await?
.into()?;
println!("{:?}", values);
Ok(())
}
sourcepub fn send_and_forget(
&mut self,
command: Command,
retry_on_error: Option<bool>
) -> Result<()>
pub fn send_and_forget(
&mut self,
command: Command,
retry_on_error: Option<bool>
) -> Result<()>
Send command to the Redis server and forget its response.
Arguments
command
- genericCommand
meant to be sent to the Redis server.retry_on_error
- retry to send the command on network error.None
- default behaviour defined inConfig::retry_on_error
Some(true)
- retry sending command on network errorSome(false)
- do not retry sending command on network error
Errors
Any Redis driver Error
that occurs during the send operation
sourcepub async fn send_batch(
&mut self,
commands: Vec<Command>,
retry_on_error: Option<bool>
) -> Result<Value>
pub async fn send_batch(
&mut self,
commands: Vec<Command>,
retry_on_error: Option<bool>
) -> Result<Value>
Send a batch of commands to the Redis server.
Arguments
commands
- batch of genericCommand
s meant to be sent to the Redis server.retry_on_error
- retry to send the command batch on network error.None
- default behaviour defined inConfig::retry_on_error
Some(true)
- retry sending batch on network errorSome(false)
- do not retry sending batch on network error
Errors
Any Redis driver Error
that occurs during the send operation
sourcepub fn create_transaction(&mut self) -> Transaction
pub fn create_transaction(&mut self) -> Transaction
Create a new transaction
sourcepub fn create_pipeline(&mut self) -> Pipeline
pub fn create_pipeline(&mut self) -> Pipeline
Create a new pipeline
pub fn create_client_tracking_invalidation_stream(
&mut self
) -> Result<impl Stream<Item = Vec<String>>>
Trait Implementations§
source§impl BitmapCommands for Client
impl BitmapCommands for Client
source§fn bitcount<K>(
&mut self,
key: K,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn bitcount<K>(
&mut self,
key: K,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldSubCommand<E, O>>,
fn bitfield<K, C, E, O>(
&mut self,
key: K,
sub_commands: C
) -> PreparedCommand<'_, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<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: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<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: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldGetSubCommand<E, O>>,
source§fn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
fn bitop<D, K, KK>(
&mut self,
operation: BitOperation,
dest_key: D,
keys: KK
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
source§fn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn bitpos<K>(
&mut self,
key: K,
bit: u64,
range: BitRange
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§impl BlockingCommands for Client
impl BlockingCommands for Client
source§fn monitor(&mut self) -> Future<'_, MonitorStream>
fn monitor(&mut self) -> Future<'_, MonitorStream>
source§fn blmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere,
timeout: f64
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: SingleArg,
D: SingleArg,
E: FromSingleValue,
fn blmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere,
timeout: f64
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: SingleArg,
D: SingleArg,
E: FromSingleValue,
source§fn blmpop<K, KK, E>(
&mut self,
timeout: f64,
keys: KK,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<(String, Vec<E>)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: FromSingleValue,
fn blmpop<K, KK, E>(
&mut self,
timeout: f64,
keys: KK,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<(String, Vec<E>)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: FromSingleValue,
source§fn blpop<K, KK, K1, V>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
V: FromSingleValue,
fn blpop<K, KK, K1, V>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
V: FromSingleValue,
source§fn brpop<K, KK, K1, V>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
V: FromSingleValue,
fn brpop<K, KK, K1, V>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
V: FromSingleValue,
source§fn bzmpop<K, KK, E>(
&mut self,
timeout: f64,
keys: KK,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: FromSingleValue,
fn bzmpop<K, KK, E>(
&mut self,
timeout: f64,
keys: KK,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: FromSingleValue,
source§fn bzpopmax<K, KK, E, K1>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
E: FromSingleValue,
fn bzpopmax<K, KK, E, K1>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
E: FromSingleValue,
source§fn bzpopmin<K, KK, E, K1>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
E: FromSingleValue,
fn bzpopmin<K, KK, E, K1>(
&mut self,
keys: KK,
timeout: f64
) -> PreparedCommand<'_, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: FromSingleValue,
E: FromSingleValue,
source§impl BloomCommands for Client
Available on crate feature redis-bloom
only.
impl BloomCommands for Client
redis-bloom
only.source§fn bf_add(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn bf_add(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn bf_exists(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn bf_exists(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn bf_info_all(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, BfInfoResult>where
Self: Sized,
fn bf_info_all(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, BfInfoResult>where
Self: Sized,
source§fn bf_info(
&mut self,
key: impl SingleArg,
param: BfInfoParameter
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn bf_info(
&mut self,
key: impl SingleArg,
param: BfInfoParameter
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
source§fn bf_insert<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>,
options: BfInsertOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn bf_insert<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>,
options: BfInsertOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn bf_loadchunk(
&mut self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn bf_loadchunk(
&mut self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
bf_scandump
. Read moresource§fn bf_madd<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn bf_madd<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn bf_mexists<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn bf_mexists<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn bf_reserve(
&mut self,
key: impl SingleArg,
error_rate: f64,
capacity: usize,
options: BfReserveOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn bf_reserve(
&mut self,
key: impl SingleArg,
error_rate: f64,
capacity: usize,
options: BfReserveOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§impl ClusterCommands for Client
impl ClusterCommands for Client
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, ()>where
Self: Sized,
S: SingleArgCollection<u16>,
fn cluster_addslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgCollection<u16>,
source§fn cluster_addslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgsCollection<u16, u16>,
fn cluster_addslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgsCollection<u16, u16>,
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>where
Self: Sized,
I: SingleArg,
fn cluster_count_failure_reports<I>(
&mut self,
node_id: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
I: SingleArg,
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, ()>where
Self: Sized,
S: SingleArgCollection<u16>,
fn cluster_delslots<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: SingleArgCollection<u16>,
source§fn cluster_delslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgsCollection<u16, u16>,
fn cluster_delslotsrange<S>(&mut self, slots: S) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
S: KeyValueArgsCollection<u16, u16>,
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, ()>where
Self: Sized,
I: SingleArg,
fn cluster_forget<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
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>where
Self: Sized,
K: SingleArg,
fn cluster_keyslot<K>(&mut self, key: K) -> PreparedCommand<'_, Self, u16>where
Self: Sized,
K: SingleArg,
source§fn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>where
Self: Sized,
I: FromValueArray<ClusterLinkInfo>,
fn cluster_links<I>(&mut self) -> PreparedCommand<'_, Self, Vec<I>>where
Self: Sized,
I: FromValueArray<ClusterLinkInfo>,
source§fn cluster_meet<IP>(
&mut self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
IP: SingleArg,
fn cluster_meet<IP>(
&mut self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
IP: SingleArg,
source§fn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>where
Self: Sized,
N: FromSingleValue,
fn cluster_myid<N>(&mut self) -> PreparedCommand<'_, Self, N>where
Self: Sized,
N: FromSingleValue,
source§fn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn cluster_nodes<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
R: FromSingleValue,
fn cluster_replicas<I, R>(&mut self, node_id: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
R: FromSingleValue,
source§fn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
fn cluster_replicate<I>(&mut self, node_id: I) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
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>where
Self: Sized,
S: FromValueArray<ClusterShardResult>,
fn cluster_shards<S>(&mut self) -> PreparedCommand<'_, Self, S>where
Self: Sized,
S: FromValueArray<ClusterShardResult>,
source§impl ConnectionCommands for Client
impl ConnectionCommands for Client
source§fn auth<U, P>(
&mut self,
username: Option<U>,
password: P
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: SingleArg,
P: SingleArg,
fn auth<U, P>(
&mut self,
username: Option<U>,
password: P
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: SingleArg,
P: SingleArg,
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>>where
Self: Sized,
CN: FromSingleValue,
fn client_getname<CN>(&mut self) -> PreparedCommand<'_, Self, Option<CN>>where
Self: Sized,
CN: FromSingleValue,
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, ()>where
Self: Sized,
CN: SingleArg,
fn client_setname<CN>(
&mut self,
connection_name: CN
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
CN: SingleArg,
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>where
Self: Sized,
M: SingleArg,
R: FromSingleValue,
fn echo<M, R>(&mut self, message: M) -> PreparedCommand<'_, Self, R>where
Self: Sized,
M: SingleArg,
R: FromSingleValue,
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>where
Self: Sized,
R: FromSingleValue,
fn ping<R>(&mut self, options: PingOptions) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn quit(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§impl CountMinSketchCommands for Client
Available on crate feature redis-bloom
only.
impl CountMinSketchCommands for Client
redis-bloom
only.source§fn cms_incrby<I: SingleArg, R: FromValueArray<usize>>(
&mut self,
key: impl SingleArg,
items: impl KeyValueArgsCollection<I, usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn cms_incrby<I: SingleArg, R: FromValueArray<usize>>(
&mut self,
key: impl SingleArg,
items: impl KeyValueArgsCollection<I, usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn cms_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, CmsInfoResult>where
Self: Sized,
fn cms_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, CmsInfoResult>where
Self: Sized,
source§fn cms_initbydim(
&mut self,
key: impl SingleArg,
width: usize,
depth: usize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cms_initbydim(
&mut self,
key: impl SingleArg,
width: usize,
depth: usize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn cms_initbyprob(
&mut self,
key: impl SingleArg,
error: f64,
probability: f64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cms_initbyprob(
&mut self,
key: impl SingleArg,
error: f64,
probability: f64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn cms_merge<S: SingleArg, W: SingleArgCollection<usize>>(
&mut self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
weights: Option<W>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cms_merge<S: SingleArg, W: SingleArgCollection<usize>>(
&mut self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
weights: Option<W>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn cms_query<I: SingleArg, C: FromValueArray<usize>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, C>where
Self: Sized,
fn cms_query<I: SingleArg, C: FromValueArray<usize>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, C>where
Self: Sized,
source§impl CuckooCommands for Client
Available on crate feature redis-bloom
only.
impl CuckooCommands for Client
redis-bloom
only.source§fn cf_add(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cf_add(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn cf_addnx(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn cf_addnx(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn cf_count(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn cf_count(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
source§fn cf_del(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn cf_del(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn cf_exists(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn cf_exists(
&mut self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn cf_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, CfInfoResult>where
Self: Sized,
fn cf_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, CfInfoResult>where
Self: Sized,
key
Read moresource§fn cf_insert<I: SingleArg>(
&mut self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cf_insert<I: SingleArg>(
&mut self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn cf_insertnx<I: SingleArg, R: FromValueArray<i64>>(
&mut self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn cf_insertnx<I: SingleArg, R: FromValueArray<i64>>(
&mut self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn cf_loadchunk(
&mut self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cf_loadchunk(
&mut self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
cf_scandump
. Read moresource§fn cf_mexists<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn cf_mexists<I: SingleArg, R: FromValueArray<bool>>(
&mut self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn cf_reserve(
&mut self,
key: impl SingleArg,
capacity: usize,
options: CfReserveOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn cf_reserve(
&mut self,
key: impl SingleArg,
capacity: usize,
options: CfReserveOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
key
with a single sub-filter for the initial amount of capacity
for items.
Because of how Cuckoo Filters work, the filter is likely to declare itself full before capacity
is reached
and therefore fill rate will likely never reach 100%.
The fill rate can be improved by using a larger bucketsize
at the cost of a higher error rate.
When the filter self-declare itself full
, it will auto-expand by generating additional sub-filters at the cost of reduced performance and increased error rate.
The new sub-filter is created with size of the previous sub-filter multiplied by expansion
.
Like bucket size, additional sub-filters grow the error rate linearly.
The size of the new sub-filter is the size of the last sub-filter multiplied by expansion
. Read moresource§impl GenericCommands for Client
impl GenericCommands for Client
source§fn copy<S, D>(
&mut self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: SingleArg,
D: SingleArg,
fn copy<S, D>(
&mut self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: SingleArg,
D: SingleArg,
source§fn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
fn del<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>where
Self: Sized,
K: SingleArg,
fn dump<K>(&mut self, key: K) -> PreparedCommand<'_, Self, DumpResult>where
Self: Sized,
K: SingleArg,
source§fn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
fn exists<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn expire<K>(
&mut self,
key: K,
seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
fn expire<K>(
&mut self,
key: K,
seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
source§fn expireat<K>(
&mut self,
key: K,
unix_time_seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
fn expireat<K>(
&mut self,
key: K,
unix_time_seconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
source§fn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn expiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>where
Self: Sized,
P: SingleArg,
K: FromSingleValue,
A: FromValueArray<K>,
fn keys<P, K, A>(&mut self, pattern: P) -> PreparedCommand<'_, Self, A>where
Self: Sized,
P: SingleArg,
K: FromSingleValue,
A: FromValueArray<K>,
source§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: SingleArg,
K: SingleArg,
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: SingleArg,
K: SingleArg,
source§fn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn move_<K>(&mut self, key: K, db: usize) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
fn object_encoding<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
key
Read moresource§fn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn object_freq<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
key
. Read moresource§fn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn object_idle_time<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
key
. Read moresource§fn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn object_refcount<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
key
. Read moresource§fn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
fn persist<K>(&mut self, key: K) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
source§fn pexpire<K>(
&mut self,
key: K,
milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
fn pexpire<K>(
&mut self,
key: K,
milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
source§fn pexpireat<K>(
&mut self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
fn pexpireat<K>(
&mut self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
source§fn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn pexpiretime<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn pttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn randomkey<R>(&mut self) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn rename<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K1: SingleArg,
K2: SingleArg,
fn rename<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K1: SingleArg,
K2: SingleArg,
source§fn renamenx<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K1: SingleArg,
K2: SingleArg,
fn renamenx<K1, K2>(
&mut self,
key: K1,
new_key: K2
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K1: SingleArg,
K2: SingleArg,
source§fn restore<K>(
&mut self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
fn restore<K>(
&mut self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
source§fn scan<K, A>(
&mut self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'_, Self, (u64, A)>where
Self: Sized,
K: FromSingleValue,
A: FromValueArray<K>,
fn scan<K, A>(
&mut self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'_, Self, (u64, A)>where
Self: Sized,
K: FromSingleValue,
A: FromValueArray<K>,
source§fn sort<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
A: FromValueArray<M>,
fn sort<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
A: FromValueArray<M>,
source§fn sort_and_store<K, D>(
&mut self,
key: K,
destination: D,
options: SortOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
D: SingleArg,
fn sort_and_store<K, D>(
&mut self,
key: K,
destination: D,
options: SortOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
D: SingleArg,
source§fn sort_readonly<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
A: FromValueArray<M>,
fn sort_readonly<K, M, A>(
&mut self,
key: K,
options: SortOptions
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
A: FromValueArray<M>,
source§fn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
fn touch<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
source§fn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn ttl<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>where
Self: Sized,
K: SingleArg,
fn type_<K>(&mut self, key: K) -> PreparedCommand<'_, Self, String>where
Self: Sized,
K: SingleArg,
source§fn unlink<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
fn unlink<K, C>(&mut self, keys: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
source§impl GeoCommands for Client
impl GeoCommands for Client
source§fn geoadd<K, M, I>(
&mut self,
key: K,
condition: GeoAddCondition,
change: bool,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
I: MultipleArgsCollection<(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: SingleArg,
M: SingleArg,
I: MultipleArgsCollection<(f64, f64, M)>,
source§fn geodist<K, M>(
&mut self,
key: K,
member1: M,
member2: M,
unit: GeoUnit
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn geodist<K, M>(
&mut self,
key: K,
member1: M,
member2: M,
unit: GeoUnit
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn geohash<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn geohash<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn geopos<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn geopos<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<(f64, f64)>>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
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: SingleArg,
M1: SingleArg,
M2: FromSingleValue,
A: FromValueArray<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: SingleArg,
M1: SingleArg,
M2: FromSingleValue,
A: FromValueArray<GeoSearchResult<M2>>,
source§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: SingleArg,
S: SingleArg,
M: SingleArg,
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: SingleArg,
S: SingleArg,
M: SingleArg,
source§impl GraphCommands for Client
Available on crate feature redis-graph
only.
impl GraphCommands for Client
redis-graph
only.source§fn graph_config_get<N, V, R>(
&mut self,
name: impl SingleArg
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: FromSingleValue,
V: FromSingleValue,
R: FromKeyValueArray<N, V>,
fn graph_config_get<N, V, R>(
&mut self,
name: impl SingleArg
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: FromSingleValue,
V: FromSingleValue,
R: FromKeyValueArray<N, V>,
source§fn graph_config_set(
&mut self,
name: impl SingleArg,
value: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn graph_config_set(
&mut self,
name: impl SingleArg,
value: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn graph_delete(
&mut self,
graph: impl SingleArg
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn graph_delete(
&mut self,
graph: impl SingleArg
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
source§fn graph_explain<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
graph: impl SingleArg,
query: impl SingleArg
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
fn graph_explain<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
graph: impl SingleArg,
query: impl SingleArg
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
source§fn graph_list<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
fn graph_list<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
source§fn graph_profile<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
fn graph_profile<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
source§fn graph_query(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, GraphResultSet>where
Self: Sized,
fn graph_query(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, GraphResultSet>where
Self: Sized,
source§fn graph_ro_query(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, GraphResultSet>where
Self: Sized,
fn graph_ro_query(
&mut self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'_, Self, GraphResultSet>where
Self: Sized,
source§fn graph_slowlog<R: FromValueArray<GraphSlowlogResult>>(
&mut self,
graph: impl SingleArg
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn graph_slowlog<R: FromValueArray<GraphSlowlogResult>>(
&mut self,
graph: impl SingleArg
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§impl HashCommands for Client
impl HashCommands for Client
source§fn hdel<K, F, C>(&mut self, key: K, fields: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
fn hdel<K, F, C>(&mut self, key: K, fields: C) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
source§fn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
F: SingleArg,
fn hexists<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
F: SingleArg,
source§fn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: FromSingleValue,
fn hget<K, F, V>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: FromSingleValue,
source§fn hgetall<K, F, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
A: FromKeyValueArray<F, V>,
fn hgetall<K, F, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
A: FromKeyValueArray<F, V>,
source§fn hincrby<K, F>(
&mut self,
key: K,
field: F,
increment: i64
) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
F: SingleArg,
fn hincrby<K, F>(
&mut self,
key: K,
field: F,
increment: i64
) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
F: SingleArg,
source§fn hincrbyfloat<K, F>(
&mut self,
key: K,
field: F,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
F: SingleArg,
fn hincrbyfloat<K, F>(
&mut self,
key: K,
field: F,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
F: SingleArg,
source§fn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
A: FromValueArray<F>,
fn hkeys<K, F, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
A: FromValueArray<F>,
source§fn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn hlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn hmget<K, F, V, C, A>(
&mut self,
key: K,
fields: C
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
V: FromSingleValue,
A: FromValueArray<V>,
fn hmget<K, F, V, C, A>(
&mut self,
key: K,
fields: C
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
V: FromSingleValue,
A: FromValueArray<V>,
source§fn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
fn hrandfield<K, F>(&mut self, key: K) -> PreparedCommand<'_, Self, F>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
source§fn hrandfields<K, F, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
A: FromValueArray<F>,
fn hrandfields<K, F, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
A: FromValueArray<F>,
source§fn hrandfields_with_values<K, F, V, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
A: FromKeyValueArray<F, V>,
fn hrandfields_with_values<K, F, V, A>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
A: FromKeyValueArray<F, V>,
source§fn hscan<K, F, V>(
&mut self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
fn hscan<K, F, V>(
&mut self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(F, V)>)>where
Self: Sized,
K: SingleArg,
F: FromSingleValue,
V: FromSingleValue,
source§fn hset<K, F, V, I>(
&mut self,
key: K,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: SingleArg,
I: KeyValueArgsCollection<F, V>,
fn hset<K, F, V, I>(
&mut self,
key: K,
items: I
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: SingleArg,
I: KeyValueArgsCollection<F, V>,
source§fn hsetnx<K, F, V>(
&mut self,
key: K,
field: F,
value: V
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: SingleArg,
fn hsetnx<K, F, V>(
&mut self,
key: K,
field: F,
value: V
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
F: SingleArg,
V: SingleArg,
source§fn hstrlen<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
fn hstrlen<K, F>(&mut self, key: K, field: F) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
F: SingleArg,
source§fn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
A: FromValueArray<V>,
fn hvals<K, V, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
A: FromValueArray<V>,
source§impl HyperLogLogCommands for Client
impl HyperLogLogCommands for Client
source§fn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
E: SingleArg,
EE: SingleArgCollection<E>,
fn pfadd<K, E, EE>(
&mut self,
key: K,
elements: EE
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
E: SingleArg,
EE: SingleArgCollection<E>,
source§fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
fn pfcount<K, KK>(&mut self, keys: KK) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
source§fn pfmerge<D, S, SS>(
&mut self,
dest_key: D,
source_keys: SS
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
D: SingleArg,
S: SingleArg,
SS: SingleArgCollection<S>,
fn pfmerge<D, S, SS>(
&mut self,
dest_key: D,
source_keys: SS
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
D: SingleArg,
S: SingleArg,
SS: SingleArgCollection<S>,
source§impl JsonCommands for Client
Available on crate feature redis-json
only.
impl JsonCommands for Client
redis-json
only.source§fn json_arrappend<K, P, V, VV, R>(
&mut self,
key: K,
path: P,
values: VV
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: FromValueArray<Option<usize>>,
fn json_arrappend<K, P, V, VV, R>(
&mut self,
key: K,
path: P,
values: VV
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: FromValueArray<Option<usize>>,
source§fn json_arrindex<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V,
options: JsonArrIndexOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromValueArray<Option<isize>>,
fn json_arrindex<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V,
options: JsonArrIndexOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromValueArray<Option<isize>>,
source§fn json_arrinsert<K, P, V, VV, R>(
&mut self,
key: K,
path: P,
index: isize,
values: VV
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: FromValueArray<Option<usize>>,
fn json_arrinsert<K, P, V, VV, R>(
&mut self,
key: K,
path: P,
index: isize,
values: VV
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: FromValueArray<Option<usize>>,
source§fn json_arrlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_arrlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
source§fn json_arrpop<K, P, R, RR>(
&mut self,
key: K,
path: P,
index: isize
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
fn json_arrpop<K, P, R, RR>(
&mut self,
key: K,
path: P,
index: isize
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
source§fn json_arrtrim<K, P, R>(
&mut self,
key: K,
path: P,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_arrtrim<K, P, R>(
&mut self,
key: K,
path: P,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
source§fn json_clear<K, P>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
fn json_clear<K, P>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
source§fn json_debug_memory<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<usize>,
fn json_debug_memory<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<usize>,
source§fn json_del<K, P>(&mut self, key: K, path: P) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
fn json_del<K, P>(&mut self, key: K, path: P) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
source§fn json_forget<K, P>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
fn json_forget<K, P>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
P: SingleArg,
source§fn json_get<K, V>(
&mut self,
key: K,
options: JsonGetOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn json_get<K, V>(
&mut self,
key: K,
options: JsonGetOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn json_mget<K, KK, P, V, VV>(
&mut self,
keys: KK,
path: P
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
P: SingleArg,
V: FromSingleValue,
VV: FromValueArray<V>,
fn json_mget<K, KK, P, V, VV>(
&mut self,
keys: KK,
path: P
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
P: SingleArg,
V: FromSingleValue,
VV: FromValueArray<V>,
source§fn json_numincrby<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromSingleValue,
fn json_numincrby<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromSingleValue,
source§fn json_nummultby<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromSingleValue,
fn json_nummultby<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromSingleValue,
source§fn json_objkeys<K, P, R, RR>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<Vec<R>>,
fn json_objkeys<K, P, R, RR>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<Vec<R>>,
path
Read moresource§fn json_objlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_objlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
source§fn json_resp<K, P, VV>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
P: SingleArg,
VV: FromValueArray<Value>,
fn json_resp<K, P, VV>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
P: SingleArg,
VV: FromValueArray<Value>,
Redis serialization protocol specification
form Read moresource§fn json_set<K, P, V>(
&mut self,
key: K,
path: P,
value: V,
condition: SetCondition
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
fn json_set<K, P, V>(
&mut self,
key: K,
path: P,
value: V,
condition: SetCondition
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
source§fn json_strappend<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_strappend<K, P, V, R>(
&mut self,
key: K,
path: P,
value: V
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
R: FromValueArray<Option<usize>>,
source§fn json_strlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_strlen<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
source§fn json_toggle<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
fn json_toggle<K, P, R>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromValueArray<Option<usize>>,
path
Read moresource§fn json_type<K, P, R, RR>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
fn json_type<K, P, R, RR>(
&mut self,
key: K,
path: P
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
path
Read moresource§impl ListCommands for Client
impl ListCommands for Client
source§fn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
fn lindex<K, E>(&mut self, key: K, index: isize) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
source§fn linsert<K, E>(
&mut self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
fn linsert<K, E>(
&mut self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
source§fn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn llen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn lmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: SingleArg,
D: SingleArg,
E: FromSingleValue,
fn lmove<S, D, E>(
&mut self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere
) -> PreparedCommand<'_, Self, E>where
Self: Sized,
S: SingleArg,
D: SingleArg,
E: FromSingleValue,
source§fn lmpop<K, E, C>(
&mut self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, (String, Vec<E>)>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
C: SingleArgCollection<K>,
fn lmpop<K, E, C>(
&mut self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'_, Self, (String, Vec<E>)>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
C: SingleArgCollection<K>,
source§fn lpop<K, E, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
A: FromValueArray<E>,
fn lpop<K, E, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
A: FromValueArray<E>,
source§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: SingleArg,
E: SingleArg,
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: SingleArg,
E: SingleArg,
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>where
Self: Sized,
K: SingleArg,
E: SingleArg,
A: FromValueArray<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: SingleArg,
E: SingleArg,
A: FromValueArray<usize>,
source§fn lpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
fn lpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
source§fn lpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
fn lpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
source§fn lrange<K, E, A>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
A: FromValueArray<E>,
fn lrange<K, E, A>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
A: FromValueArray<E>,
source§fn lrem<K, E>(
&mut self,
key: K,
count: isize,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
fn lrem<K, E>(
&mut self,
key: K,
count: isize,
element: E
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
source§fn lset<K, E>(
&mut self,
key: K,
index: isize,
element: E
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
E: SingleArg,
fn lset<K, E>(
&mut self,
key: K,
index: isize,
element: E
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
E: SingleArg,
source§fn ltrim<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
fn ltrim<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
source§fn rpop<K, E, C>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, C>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
C: FromValueArray<E>,
fn rpop<K, E, C>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, C>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
C: FromValueArray<E>,
source§fn rpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
fn rpush<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
source§fn rpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
fn rpushx<K, E, C>(
&mut self,
key: K,
elements: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
E: SingleArg,
C: SingleArgCollection<E>,
source§impl PubSubCommands for Client
impl PubSubCommands for Client
source§fn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>where
C: SingleArg + Send + 'a,
CC: SingleArgCollection<C>,
fn subscribe<'a, C, CC>(&'a mut self, channels: CC) -> Future<'a, PubSubStream>where
C: SingleArg + Send + 'a,
CC: SingleArgCollection<C>,
source§fn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>where
P: SingleArg + Send + 'a,
PP: SingleArgCollection<P>,
fn psubscribe<'a, P, PP>(&'a mut self, patterns: PP) -> Future<'a, PubSubStream>where
P: SingleArg + Send + 'a,
PP: SingleArgCollection<P>,
source§fn ssubscribe<'a, C, CC>(
&'a mut self,
shardchannels: CC
) -> Future<'a, PubSubStream>where
C: SingleArg + Send + 'a,
CC: SingleArgCollection<C>,
fn ssubscribe<'a, C, CC>(
&'a mut self,
shardchannels: CC
) -> Future<'a, PubSubStream>where
C: SingleArg + Send + 'a,
CC: SingleArgCollection<C>,
source§fn publish<C, M>(
&mut self,
channel: C,
message: M
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
C: SingleArg,
M: SingleArg,
fn publish<C, M>(
&mut self,
channel: C,
message: M
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
C: SingleArg,
M: SingleArg,
source§fn pub_sub_channels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
fn pub_sub_channels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
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: SingleArg,
CC: SingleArgCollection<C>,
R: FromSingleValue,
RR: FromKeyValueArray<R, usize>,
fn pub_sub_numsub<C, CC, R, RR>(
&mut self,
channels: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: FromSingleValue,
RR: FromKeyValueArray<R, usize>,
source§fn pub_sub_shardchannels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
fn pub_sub_shardchannels<C, CC>(
&mut self,
options: PubSubChannelsOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
source§fn pub_sub_shardnumsub<C, CC, R, RR>(
&mut self,
channels: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: FromSingleValue,
RR: FromKeyValueArray<R, usize>,
fn pub_sub_shardnumsub<C, CC, R, RR>(
&mut self,
channels: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: FromSingleValue,
RR: FromKeyValueArray<R, usize>,
source§impl ScriptingCommands for Client
impl ScriptingCommands for Client
source§fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn eval<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn eval_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn eval_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn evalsha<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn evalsha_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn evalsha_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn fcall<R>(&mut self, builder: CallBuilder) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn fcall_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
fn fcall_readonly<R>(
&mut self,
builder: CallBuilder
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
R: FromSingleValue,
source§fn function_delete<L>(
&mut self,
library_name: L
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
L: SingleArg,
fn function_delete<L>(
&mut self,
library_name: L
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
L: SingleArg,
source§fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>where
Self: Sized,
P: FromSingleValue,
fn function_dump<P>(&mut self) -> PreparedCommand<'_, Self, P>where
Self: Sized,
P: FromSingleValue,
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>where
Self: Sized,
F: SingleArg,
L: FromSingleValue,
fn function_load<F, L>(
&mut self,
replace: bool,
function_code: F
) -> PreparedCommand<'_, Self, L>where
Self: Sized,
F: SingleArg,
L: FromSingleValue,
source§fn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: SingleArg,
fn function_restore<P>(
&mut self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: SingleArg,
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>>where
Self: Sized,
S: SingleArg,
C: SingleArgCollection<S>,
fn script_exists<S, C>(
&mut self,
sha1s: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
S: SingleArg,
C: SingleArgCollection<S>,
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>where
Self: Sized,
S: SingleArg,
V: FromSingleValue,
fn script_load<S, V>(&mut self, script: S) -> PreparedCommand<'_, Self, V>where
Self: Sized,
S: SingleArg,
V: FromSingleValue,
source§impl SearchCommands for Client
Available on crate feature redis-search
only.
impl SearchCommands for Client
redis-search
only.source§fn ft_aggregate<I, Q>(
&mut self,
index: I,
query: Q,
options: FtAggregateOptions
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
fn ft_aggregate<I, Q>(
&mut self,
index: I,
query: Q,
options: FtAggregateOptions
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
source§fn ft_aliasadd<A, I>(
&mut self,
alias: A,
index: I
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
I: SingleArg,
fn ft_aliasadd<A, I>(
&mut self,
alias: A,
index: I
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
I: SingleArg,
source§fn ft_aliasdel<A>(&mut self, alias: A) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
fn ft_aliasdel<A>(&mut self, alias: A) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
source§fn ft_aliasupdate<A, I>(
&mut self,
alias: A,
index: I
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
I: SingleArg,
fn ft_aliasupdate<A, I>(
&mut self,
alias: A,
index: I
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
A: SingleArg,
I: SingleArg,
source§fn ft_alter<I>(
&mut self,
index: I,
skip_initial_scan: bool,
attribute: FtFieldSchema
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
fn ft_alter<I>(
&mut self,
index: I,
skip_initial_scan: bool,
attribute: FtFieldSchema
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
source§fn ft_config_get<O, N, V, R>(
&mut self,
option: O
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
O: SingleArg,
N: FromSingleValue,
V: FromSingleValue,
R: FromKeyValueArray<N, V>,
fn ft_config_get<O, N, V, R>(
&mut self,
option: O
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
O: SingleArg,
N: FromSingleValue,
V: FromSingleValue,
R: FromKeyValueArray<N, V>,
source§fn ft_config_set<O, V>(
&mut self,
option: O,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
O: SingleArg,
V: SingleArg,
fn ft_config_set<O, V>(
&mut self,
option: O,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
O: SingleArg,
V: SingleArg,
source§fn ft_create<I, S>(
&mut self,
index: I,
options: FtCreateOptions,
schema: S
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
S: MultipleArgsCollection<FtFieldSchema>,
fn ft_create<I, S>(
&mut self,
index: I,
options: FtCreateOptions,
schema: S
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
S: MultipleArgsCollection<FtFieldSchema>,
source§fn ft_cursor_del<I>(
&mut self,
index: I,
cursor_id: u64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
fn ft_cursor_del<I>(
&mut self,
index: I,
cursor_id: u64
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
source§fn ft_cursor_read<I>(
&mut self,
index: I,
cursor_id: u64
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
fn ft_cursor_read<I>(
&mut self,
index: I,
cursor_id: u64
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
source§fn ft_dictadd<D, T, TT>(
&mut self,
dict: D,
terms: TT
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
T: SingleArg,
TT: SingleArgCollection<T>,
fn ft_dictadd<D, T, TT>(
&mut self,
dict: D,
terms: TT
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
T: SingleArg,
TT: SingleArgCollection<T>,
source§fn ft_dictdel<D, T, TT>(
&mut self,
dict: D,
terms: TT
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
T: SingleArg,
TT: SingleArgCollection<T>,
fn ft_dictdel<D, T, TT>(
&mut self,
dict: D,
terms: TT
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
T: SingleArg,
TT: SingleArgCollection<T>,
source§fn ft_dictdump<D, T, TT>(&mut self, dict: D) -> PreparedCommand<'_, Self, TT>where
Self: Sized,
D: SingleArg,
T: FromSingleValue,
TT: FromValueArray<T>,
fn ft_dictdump<D, T, TT>(&mut self, dict: D) -> PreparedCommand<'_, Self, TT>where
Self: Sized,
D: SingleArg,
T: FromSingleValue,
TT: FromValueArray<T>,
source§fn ft_dropindex<I>(&mut self, index: I, dd: bool) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
fn ft_dropindex<I>(&mut self, index: I, dd: bool) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
I: SingleArg,
source§fn ft_explain<I, Q, R>(
&mut self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: FromSingleValue,
fn ft_explain<I, Q, R>(
&mut self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: FromSingleValue,
source§fn ft_explaincli<I, Q, R, RR>(
&mut self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
fn ft_explaincli<I, Q, R, RR>(
&mut self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: FromSingleValue,
RR: FromValueArray<R>,
redis-cli --raw
Read moresource§fn ft_info(
&mut self,
index: impl SingleArg
) -> PreparedCommand<'_, Self, FtInfoResult>where
Self: Sized,
fn ft_info(
&mut self,
index: impl SingleArg
) -> PreparedCommand<'_, Self, FtInfoResult>where
Self: Sized,
source§fn ft_list<R, RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
R: FromSingleValue,
RR: FromValueArray<R>,
fn ft_list<R, RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
R: FromSingleValue,
RR: FromValueArray<R>,
source§fn ft_profile<I, Q, QQ>(
&mut self,
index: I,
query_type: FtProfileQueryType,
limited: bool,
query: QQ
) -> PreparedCommand<'_, Self, FtProfileResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
QQ: SingleArgCollection<Q>,
fn ft_profile<I, Q, QQ>(
&mut self,
index: I,
query_type: FtProfileQueryType,
limited: bool,
query: QQ
) -> PreparedCommand<'_, Self, FtProfileResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
QQ: SingleArgCollection<Q>,
source§fn ft_search<I, Q>(
&mut self,
index: I,
query: Q,
options: FtSearchOptions
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
fn ft_search<I, Q>(
&mut self,
index: I,
query: Q,
options: FtSearchOptions
) -> PreparedCommand<'_, Self, FtQueryResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
source§fn ft_spellcheck<I, Q>(
&mut self,
index: I,
query: Q,
options: FtSpellCheckOptions
) -> PreparedCommand<'_, Self, FtSpellCheckResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
fn ft_spellcheck<I, Q>(
&mut self,
index: I,
query: Q,
options: FtSpellCheckOptions
) -> PreparedCommand<'_, Self, FtSpellCheckResult>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
source§fn ft_syndump<I, R>(&mut self, index: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
R: FromKeyValueArray<String, Vec<String>>,
fn ft_syndump<I, R>(&mut self, index: I) -> PreparedCommand<'_, Self, R>where
Self: Sized,
I: SingleArg,
R: FromKeyValueArray<String, Vec<String>>,
source§fn ft_synupdate<T: SingleArg>(
&mut self,
index: impl SingleArg,
synonym_group_id: impl SingleArg,
skip_initial_scan: bool,
terms: impl SingleArgCollection<T>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ft_synupdate<T: SingleArg>(
&mut self,
index: impl SingleArg,
synonym_group_id: impl SingleArg,
skip_initial_scan: bool,
terms: impl SingleArgCollection<T>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ft_tagvals<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
index: impl SingleArg,
field_name: impl SingleArg
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
fn ft_tagvals<R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
index: impl SingleArg,
field_name: impl SingleArg
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
source§fn ft_sugadd(
&mut self,
key: impl SingleArg,
string: impl SingleArg,
score: f64,
options: FtSugAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn ft_sugadd(
&mut self,
key: impl SingleArg,
string: impl SingleArg,
score: f64,
options: FtSugAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
source§fn ft_sugdel(
&mut self,
key: impl SingleArg,
string: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
fn ft_sugdel(
&mut self,
key: impl SingleArg,
string: impl SingleArg
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
source§fn ft_sugget(
&mut self,
key: impl SingleArg,
prefix: impl SingleArg,
options: FtSugGetOptions
) -> PreparedCommand<'_, Self, Vec<FtSuggestion>>where
Self: Sized,
fn ft_sugget(
&mut self,
key: impl SingleArg,
prefix: impl SingleArg,
options: FtSugGetOptions
) -> PreparedCommand<'_, Self, Vec<FtSuggestion>>where
Self: Sized,
source§impl SentinelCommands for Client
impl SentinelCommands for Client
source§fn sentinel_config_get<N, RN, RV, R>(
&mut self,
name: N
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: SingleArg,
RN: FromSingleValue,
RV: FromSingleValue,
R: FromKeyValueArray<RN, RV>,
fn sentinel_config_get<N, RN, RV, R>(
&mut self,
name: N
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: SingleArg,
RN: FromSingleValue,
RV: FromSingleValue,
R: FromKeyValueArray<RN, RV>,
source§fn sentinel_config_set<N, V>(
&mut self,
name: N,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
V: SingleArg,
fn sentinel_config_set<N, V>(
&mut self,
name: N,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
V: SingleArg,
source§fn sentinel_ckquorum<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
fn sentinel_ckquorum<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
source§fn sentinel_failover<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
fn sentinel_failover<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
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)>>where
Self: Sized,
N: SingleArg,
fn sentinel_get_master_addr_by_name<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Option<(String, u16)>>where
Self: Sized,
N: SingleArg,
source§fn sentinel_info_cache<N, NN, R>(
&mut self,
master_names: NN
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: SingleArg,
NN: MultipleArgsCollection<N>,
R: FromKeyValueArray<String, Vec<(u64, String)>>,
fn sentinel_info_cache<N, NN, R>(
&mut self,
master_names: NN
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
N: SingleArg,
NN: MultipleArgsCollection<N>,
R: FromKeyValueArray<String, Vec<(u64, String)>>,
info
output from masters and replicas.source§fn sentinel_master<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, SentinelMasterInfo>where
Self: Sized,
N: SingleArg,
fn sentinel_master<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, SentinelMasterInfo>where
Self: Sized,
N: SingleArg,
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, ()>where
Self: Sized,
N: SingleArg,
I: SingleArg,
fn sentinel_monitor<N, I>(
&mut self,
name: N,
ip: I,
port: u16,
quorum: usize
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
I: SingleArg,
source§fn sentinel_remove<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
fn sentinel_remove<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
source§fn sentinel_set<N, O, V, C>(
&mut self,
name: N,
configs: C
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
O: SingleArg,
V: SingleArg,
C: KeyValueArgsCollection<O, V>,
fn sentinel_set<N, O, V, C>(
&mut self,
name: N,
configs: C
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
O: SingleArg,
V: SingleArg,
C: KeyValueArgsCollection<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>>where
Self: Sized,
N: SingleArg,
fn sentinel_replicas<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Vec<SentinelReplicaInfo>>where
Self: Sized,
N: SingleArg,
source§fn sentinel_reset<P>(&mut self, pattern: P) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
P: SingleArg,
fn sentinel_reset<P>(&mut self, pattern: P) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
P: SingleArg,
source§fn sentinel_sentinels<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Vec<SentinelInfo>>where
Self: Sized,
N: SingleArg,
fn sentinel_sentinels<N>(
&mut self,
master_name: N
) -> PreparedCommand<'_, Self, Vec<SentinelInfo>>where
Self: Sized,
N: SingleArg,
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 Client
impl ServerCommands for Client
source§fn acl_cat<C, CC>(
&mut self,
options: AclCatOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
fn acl_cat<C, CC>(
&mut self,
options: AclCatOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
C: FromSingleValue,
CC: FromValueArray<C>,
source§fn acl_deluser<U, UU>(
&mut self,
usernames: UU
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
U: SingleArg,
UU: SingleArgCollection<U>,
fn acl_deluser<U, UU>(
&mut self,
usernames: UU
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
U: SingleArg,
UU: SingleArgCollection<U>,
source§fn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
U: SingleArg,
C: SingleArg,
R: FromSingleValue,
fn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
U: SingleArg,
C: SingleArg,
R: FromSingleValue,
source§fn acl_genpass<R: FromSingleValue>(
&mut self,
options: AclGenPassOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn acl_genpass<R: FromSingleValue>(
&mut self,
options: AclGenPassOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
U: SingleArg,
RR: FromKeyValueArray<String, Value>,
fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
U: SingleArg,
RR: FromKeyValueArray<String, Value>,
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>>where
Self: Sized,
EE: FromKeyValueArray<String, Value>,
fn acl_log<EE>(
&mut self,
options: AclLogOptions
) -> PreparedCommand<'_, Self, Vec<EE>>where
Self: Sized,
EE: FromKeyValueArray<String, Value>,
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, ()>where
Self: Sized,
U: SingleArg,
R: SingleArg,
RR: SingleArgCollection<R>,
fn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
U: SingleArg,
R: SingleArg,
RR: SingleArgCollection<R>,
source§fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>where
Self: Sized,
U: FromSingleValue,
UU: FromValueArray<U>,
fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>where
Self: Sized,
U: FromSingleValue,
UU: FromValueArray<U>,
source§fn acl_whoami<U: FromSingleValue>(&mut self) -> PreparedCommand<'_, Self, U>where
Self: Sized,
fn acl_whoami<U: FromSingleValue>(&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: SingleArg,
NN: SingleArgCollection<N>,
DD: FromKeyValueArray<String, CommandDoc>,
fn command_docs<N, NN, DD>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: SingleArg,
NN: SingleArgCollection<N>,
DD: FromKeyValueArray<String, CommandDoc>,
source§fn command_getkeys<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: FromValueArray<String>,
fn command_getkeys<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: FromValueArray<String>,
source§fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: FromKeyValueArray<String, Vec<String>>,
fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: FromKeyValueArray<String, Vec<String>>,
source§fn command_info<N, NN>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
N: SingleArg,
NN: SingleArgCollection<N>,
fn command_info<N, NN>(
&mut self,
command_names: NN
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
N: SingleArg,
NN: SingleArgCollection<N>,
source§fn command_list<CC>(
&mut self,
options: CommandListOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
CC: FromValueArray<String>,
fn command_list<CC>(
&mut self,
options: CommandListOptions
) -> PreparedCommand<'_, Self, CC>where
Self: Sized,
CC: FromValueArray<String>,
source§fn config_get<P, PP, V, VV>(
&mut self,
params: PP
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: SingleArg,
PP: SingleArgCollection<P>,
V: FromSingleValue,
VV: FromKeyValueArray<String, V>,
fn config_get<P, PP, V, VV>(
&mut self,
params: PP
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: SingleArg,
PP: SingleArgCollection<P>,
V: FromSingleValue,
VV: FromKeyValueArray<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, ()>where
Self: Sized,
P: SingleArg,
V: SingleArg,
C: KeyValueArgsCollection<P, V>,
fn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: SingleArg,
V: SingleArg,
C: KeyValueArgsCollection<P, V>,
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>where
Self: Sized,
SS: SingleArgCollection<InfoSection>,
fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>where
Self: Sized,
SS: SingleArgCollection<InfoSection>,
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: SingleArg,
CC: SingleArgCollection<C>,
RR: FromKeyValueArray<String, CommandHistogram>,
fn latency_histogram<C, CC, RR>(
&mut self,
commands: CC
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
RR: FromKeyValueArray<String, CommandHistogram>,
source§fn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromValueArray<(u32, u32)>,
fn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromValueArray<(u32, u32)>,
source§fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromValueArray<(String, u32, u32, u32)>,
fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
RR: FromValueArray<(String, u32, u32, u32)>,
source§fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
EE: SingleArgCollection<LatencyHistoryEvent>,
fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
EE: SingleArgCollection<LatencyHistoryEvent>,
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>>where
Self: Sized,
K: SingleArg,
fn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: SingleArg,
source§fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>where
Self: Sized,
MM: FromValueArray<ModuleInfo>,
fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>where
Self: Sized,
MM: FromValueArray<ModuleInfo>,
source§fn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: SingleArg,
fn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
P: SingleArg,
source§fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
N: SingleArg,
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 Client
impl SetCommands for Client
source§fn sadd<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn sadd<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn scard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn sdiff<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
fn sdiff<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
source§fn sdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
fn sdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn sinter<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
fn sinter<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
source§fn sintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
fn sintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn sinterstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
fn sinterstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn sismember<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn sismember<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
fn smembers<K, M, A>(&mut self, key: K) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
source§fn smismember<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn smismember<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<bool>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn smove<S, D, M>(
&mut self,
source: S,
destination: D,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: SingleArg,
D: SingleArg,
M: SingleArg,
fn smove<S, D, M>(
&mut self,
source: S,
destination: D,
member: M
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
S: SingleArg,
D: SingleArg,
M: SingleArg,
source§fn spop<K, M, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
fn spop<K, M, A>(&mut self, key: K, count: usize) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
source§fn srandmember<K, M, A>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
fn srandmember<K, M, A>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
A: FromValueArray<M>,
source§fn srem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn srem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn sscan<K, M>(
&mut self,
key: K,
cursor: u64,
options: SScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<M>)>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
fn sscan<K, M>(
&mut self,
key: K,
cursor: u64,
options: SScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<M>)>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
source§fn sunion<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
fn sunion<K, M, C, A>(&mut self, keys: C) -> PreparedCommand<'_, Self, A>where
Self: Sized,
K: SingleArg,
M: FromSingleValue + Eq + Hash,
C: SingleArgCollection<K>,
A: FromValueArray<M>,
source§fn sunionstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
fn sunionstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
source§impl SortedSetCommands for Client
impl SortedSetCommands for Client
source§fn zadd<K, M, I>(
&mut self,
key: K,
items: I,
options: ZAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
I: MultipleArgsCollection<(f64, M)>,
fn zadd<K, M, I>(
&mut self,
key: K,
items: I,
options: ZAddOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
I: MultipleArgsCollection<(f64, M)>,
source§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: SingleArg,
M: SingleArg,
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: SingleArg,
M: SingleArg,
source§fn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn zcard<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn zcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: SingleArg,
fn zcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: SingleArg,
source§fn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
fn zdiff<K, C, E>(&mut self, keys: C) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
source§fn zdiff_with_scores<K, C, E>(
&mut self,
keys: C
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
fn zdiff_with_scores<K, C, E>(
&mut self,
keys: C
) -> PreparedCommand<'_, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
source§fn zdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
fn zdiffstore<D, K, C>(
&mut self,
destination: D,
keys: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
source§fn zincrby<K, M>(
&mut self,
key: K,
increment: f64,
member: M
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn zincrby<K, M>(
&mut self,
key: K,
increment: f64,
member: M
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn zinter<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
fn zinter<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
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: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
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: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
source§fn zintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
fn zintercard<K, C>(
&mut self,
keys: C,
limit: usize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
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: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<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: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
source§fn zlexcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: SingleArg,
fn zlexcount<K, M1, M2>(
&mut self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: SingleArg,
source§fn zmpop<K, C, E>(
&mut self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
fn zmpop<K, C, E>(
&mut self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'_, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: FromSingleValue,
source§fn zmscore<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<f64>>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn zmscore<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, Vec<Option<f64>>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn zpopmax<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
fn zpopmax<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
source§fn zpopmin<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
fn zpopmin<K, M>(
&mut self,
key: K,
count: usize
) -> PreparedCommand<'_, Self, Vec<(M, f64)>>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
source§fn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
fn zrandmember<K, E>(&mut self, key: K) -> PreparedCommand<'_, Self, E>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
source§fn zrandmembers<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
fn zrandmembers<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
E: FromSingleValue,
source§fn zrandmembers_with_scores<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
E: FromValue,
fn zrandmembers_with_scores<K, E>(
&mut self,
key: K,
count: isize
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
E: FromValue,
source§fn zrange<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: FromSingleValue,
fn zrange<K, S, E>(
&mut self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: FromSingleValue,
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)>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: FromSingleValue,
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: SingleArg,
S: SingleArg,
E: FromSingleValue,
key
. Read moresource§fn zrangestore<D, S, SS>(
&mut self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
S: SingleArg,
SS: SingleArg,
fn zrangestore<D, S, SS>(
&mut self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
D: SingleArg,
S: SingleArg,
SS: SingleArg,
source§fn zrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn zrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn zrem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
fn zrem<K, M, C>(
&mut self,
key: K,
members: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
M: SingleArg,
C: SingleArgCollection<M>,
source§fn zremrangebylex<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
S: SingleArg,
fn zremrangebylex<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
S: SingleArg,
source§fn zremrangebyrank<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn zremrangebyrank<K>(
&mut self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn zremrangebyscore<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
S: SingleArg,
fn zremrangebyscore<K, S>(
&mut self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
S: SingleArg,
source§fn zrevrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn zrevrank<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<usize>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn zscan<K, M>(
&mut self,
key: K,
cursor: usize,
options: ZScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
fn zscan<K, M>(
&mut self,
key: K,
cursor: usize,
options: ZScanOptions
) -> PreparedCommand<'_, Self, (u64, Vec<(M, f64)>)>where
Self: Sized,
K: SingleArg,
M: FromSingleValue,
source§fn zscore<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
fn zscore<K, M>(
&mut self,
key: K,
member: M
) -> PreparedCommand<'_, Self, Option<f64>>where
Self: Sized,
K: SingleArg,
M: SingleArg,
source§fn zunion<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
fn zunion<K, C, W, E>(
&mut self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'_, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
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: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
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: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: FromSingleValue,
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: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<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: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
source§impl StreamCommands for Client
impl StreamCommands for Client
source§fn xack<K, G, I, II>(
&mut self,
key: K,
group: G,
ids: II
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
fn xack<K, G, I, II>(
&mut self,
key: K,
group: G,
ids: II
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
II: SingleArgCollection<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: SingleArg,
I: SingleArg,
F: SingleArg,
V: SingleArg,
FFVV: KeyValueArgsCollection<F, V>,
R: FromSingleValue,
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: SingleArg,
I: SingleArg,
F: SingleArg,
V: SingleArg,
FFVV: KeyValueArgsCollection<F, V>,
R: FromSingleValue,
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: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
V: FromSingleValue,
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: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
V: FromSingleValue,
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: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
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: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
source§fn xdel<K, I, II>(&mut self, key: K, ids: II) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
fn xdel<K, I, II>(&mut self, key: K, ids: II) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
source§fn xgroup_create<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
fn xgroup_create<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
groupname
for the stream stored at key
. Read moresource§fn xgroup_createconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
fn xgroup_createconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
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>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
fn xgroup_delconsumer<K, G, C>(
&mut self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
source§fn xgroup_destroy<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
fn xgroup_destroy<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
G: SingleArg,
source§fn xgroup_setid<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
fn xgroup_setid<K, G, I>(
&mut self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
G: SingleArg,
I: SingleArg,
source§fn xinfo_consumers<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
fn xinfo_consumers<K, G>(
&mut self,
key: K,
groupname: G
) -> PreparedCommand<'_, Self, Vec<XConsumerInfo>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
groupname
consumer group of the stream stored at key
. Read moresource§fn xinfo_groups<K>(
&mut self,
key: K
) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>where
Self: Sized,
K: SingleArg,
fn xinfo_groups<K>(
&mut self,
key: K
) -> PreparedCommand<'_, Self, Vec<XGroupInfo>>where
Self: Sized,
K: SingleArg,
groupname
consumer group of the stream stored at key
. Read moresource§fn xinfo_stream<K>(
&mut self,
key: K,
options: XInfoStreamOptions
) -> PreparedCommand<'_, Self, XStreamInfo>where
Self: Sized,
K: SingleArg,
fn xinfo_stream<K>(
&mut self,
key: K,
options: XInfoStreamOptions
) -> PreparedCommand<'_, Self, XStreamInfo>where
Self: Sized,
K: SingleArg,
key
. Read moresource§fn xlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn xlen<K>(&mut self, key: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn xpending<K, G>(
&mut self,
key: K,
group: G
) -> PreparedCommand<'_, Self, XPendingResult>where
Self: Sized,
K: SingleArg,
G: SingleArg,
fn xpending<K, G>(
&mut self,
key: K,
group: G
) -> PreparedCommand<'_, Self, XPendingResult>where
Self: Sized,
K: SingleArg,
G: SingleArg,
source§fn xpending_with_options<K, G>(
&mut self,
key: K,
group: G,
options: XPendingOptions
) -> PreparedCommand<'_, Self, Vec<XPendingMessageResult>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
fn xpending_with_options<K, G>(
&mut self,
key: K,
group: G,
options: XPendingOptions
) -> PreparedCommand<'_, Self, Vec<XPendingMessageResult>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
source§fn xrange<K, S, E, V>(
&mut self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: SingleArg,
V: FromSingleValue,
fn xrange<K, S, E, V>(
&mut self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: SingleArg,
V: FromSingleValue,
source§fn xread<K, KK, I, II, V, R>(
&mut self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
R: FromKeyValueArray<String, Vec<StreamEntry<V>>>,
fn xread<K, KK, I, II, V, R>(
&mut self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
R: FromKeyValueArray<String, Vec<StreamEntry<V>>>,
source§fn xreadgroup<G, C, K, KK, I, II, V, R>(
&mut self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
G: SingleArg,
C: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
R: FromKeyValueArray<String, Vec<StreamEntry<V>>>,
fn xreadgroup<G, C, K, KK, I, II, V, R>(
&mut self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
G: SingleArg,
C: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: FromSingleValue,
R: FromKeyValueArray<String, Vec<StreamEntry<V>>>,
source§fn xrevrange<K, E, S, V>(
&mut self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
S: SingleArg,
V: FromSingleValue,
fn xrevrange<K, E, S, V>(
&mut self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'_, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
S: SingleArg,
V: FromSingleValue,
source§fn xtrim<K>(
&mut self,
key: K,
options: XTrimOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn xtrim<K>(
&mut self,
key: K,
options: XTrimOptions
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§impl StringCommands for Client
impl StringCommands for Client
source§fn append<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn append<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§fn decr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn decr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn decrby<K>(&mut self, key: K, decrement: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn decrby<K>(&mut self, key: K, decrement: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn get<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn get<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn getdel<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn getdel<K, V>(&mut self, key: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn getex<K, V>(
&mut self,
key: K,
options: GetExOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn getex<K, V>(
&mut self,
key: K,
options: GetExOptions
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn getrange<K, V>(
&mut self,
key: K,
start: usize,
end: isize
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn getrange<K, V>(
&mut self,
key: K,
start: usize,
end: isize
) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn getset<K, V, R>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
V: SingleArg,
R: FromSingleValue,
fn getset<K, V, R>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, R>where
Self: Sized,
K: SingleArg,
V: SingleArg,
R: FromSingleValue,
source§fn incr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn incr<K>(&mut self, key: K) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn incrby<K>(&mut self, key: K, increment: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
fn incrby<K>(&mut self, key: K, increment: i64) -> PreparedCommand<'_, Self, i64>where
Self: Sized,
K: SingleArg,
source§fn incrbyfloat<K>(
&mut self,
key: K,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
fn incrbyfloat<K>(
&mut self,
key: K,
increment: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
K: SingleArg,
source§fn lcs<K, V>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
fn lcs<K, V>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, V>where
Self: Sized,
K: SingleArg,
V: FromSingleValue,
source§fn lcs_len<K>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
fn lcs_len<K>(&mut self, key1: K, key2: K) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
K: SingleArg,
source§fn lcs_idx<K>(
&mut self,
key1: K,
key2: K,
min_match_len: Option<usize>,
with_match_len: bool
) -> PreparedCommand<'_, Self, LcsResult>where
Self: Sized,
K: SingleArg,
fn lcs_idx<K>(
&mut self,
key1: K,
key2: K,
min_match_len: Option<usize>,
with_match_len: bool
) -> PreparedCommand<'_, Self, LcsResult>where
Self: Sized,
K: SingleArg,
source§fn mget<K, KK, V, VV>(&mut self, keys: KK) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
V: FromSingleValue,
VV: FromValueArray<V>,
fn mget<K, KK, V, VV>(&mut self, keys: KK) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
V: FromSingleValue,
VV: FromValueArray<V>,
source§fn mset<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
C: KeyValueArgsCollection<K, V>,
K: SingleArg,
V: SingleArg,
fn mset<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
C: KeyValueArgsCollection<K, V>,
K: SingleArg,
V: SingleArg,
source§fn msetnx<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
C: KeyValueArgsCollection<K, V>,
K: SingleArg,
V: SingleArg,
fn msetnx<K, V, C>(&mut self, items: C) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
C: KeyValueArgsCollection<K, V>,
K: SingleArg,
V: SingleArg,
source§fn psetex<K, V>(
&mut self,
key: K,
milliseconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn psetex<K, V>(
&mut self,
key: K,
milliseconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§fn set<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn set<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§fn set_with_options<K, V>(
&mut self,
key: K,
value: V,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn set_with_options<K, V>(
&mut self,
key: K,
value: V,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§fn set_get_with_options<K, V1, V2>(
&mut self,
key: K,
value: V1,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, V2>where
Self: Sized,
K: SingleArg,
V1: SingleArg,
V2: FromSingleValue,
fn set_get_with_options<K, V1, V2>(
&mut self,
key: K,
value: V1,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'_, Self, V2>where
Self: Sized,
K: SingleArg,
V1: SingleArg,
V2: FromSingleValue,
source§fn setex<K, V>(
&mut self,
key: K,
seconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn setex<K, V>(
&mut self,
key: K,
seconds: u64,
value: V
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§fn setnx<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
V: SingleArg,
fn setnx<K, V>(&mut self, key: K, value: V) -> PreparedCommand<'_, Self, bool>where
Self: Sized,
K: SingleArg,
V: SingleArg,
source§impl TDigestCommands for Client
Available on crate feature redis-bloom
only.
impl TDigestCommands for Client
redis-bloom
only.source§fn tdigest_add(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<f64>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn tdigest_add(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<f64>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn tdigest_byrank<R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_byrank<R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_byrevrank<R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_byrevrank<R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_cdf<V: SingleArg, R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_cdf<V: SingleArg, R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_create(
&mut self,
key: impl SingleArg,
compression: Option<i64>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn tdigest_create(
&mut self,
key: impl SingleArg,
compression: Option<i64>
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn tdigest_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, TDigestInfoResult>where
Self: Sized,
fn tdigest_info(
&mut self,
key: impl SingleArg
) -> PreparedCommand<'_, Self, TDigestInfoResult>where
Self: Sized,
source§fn tdigest_max(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
fn tdigest_max(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
source§fn tdigest_merge<S: SingleArg>(
&mut self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
options: TDigestMergeOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn tdigest_merge<S: SingleArg>(
&mut self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
options: TDigestMergeOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn tdigest_min(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
fn tdigest_min(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
source§fn tdigest_quantile<Q: SingleArg, R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
quantiles: impl SingleArgCollection<Q>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_quantile<Q: SingleArg, R: FromValueArray<f64>>(
&mut self,
key: impl SingleArg,
quantiles: impl SingleArgCollection<Q>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_rank<V: SingleArg, R: FromValueArray<isize>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_rank<V: SingleArg, R: FromValueArray<isize>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_reset(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn tdigest_reset(&mut self, key: impl SingleArg) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn tdigest_revrank<V: SingleArg, R: FromValueArray<isize>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn tdigest_revrank<V: SingleArg, R: FromValueArray<isize>>(
&mut self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn tdigest_trimmed_mean(
&mut self,
key: impl SingleArg,
low_cut_quantile: f64,
high_cut_quantile: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
fn tdigest_trimmed_mean(
&mut self,
key: impl SingleArg,
low_cut_quantile: f64,
high_cut_quantile: f64
) -> PreparedCommand<'_, Self, f64>where
Self: Sized,
source§impl TimeSeriesCommands for Client
Available on crate feature redis-time-series
only.
impl TimeSeriesCommands for Client
redis-time-series
only.source§fn ts_add(
&mut self,
key: impl SingleArg,
timestamp: impl SingleArg,
value: f64,
options: TsAddOptions
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn ts_add(
&mut self,
key: impl SingleArg,
timestamp: impl SingleArg,
value: f64,
options: TsAddOptions
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
source§fn ts_alter(
&mut self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ts_alter(
&mut self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ts_create(
&mut self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ts_create(
&mut self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ts_createrule(
&mut self,
src_key: impl SingleArg,
dst_key: impl SingleArg,
aggregator: TsAggregationType,
bucket_duration: u64,
options: TsCreateRuleOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ts_createrule(
&mut self,
src_key: impl SingleArg,
dst_key: impl SingleArg,
aggregator: TsAggregationType,
bucket_duration: u64,
options: TsCreateRuleOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ts_decrby(
&mut self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ts_decrby(
&mut self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ts_del(
&mut self,
key: impl SingleArg,
from_timestamp: u64,
to_timestamp: u64
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn ts_del(
&mut self,
key: impl SingleArg,
from_timestamp: u64,
to_timestamp: u64
) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
source§fn ts_deleterule(
&mut self,
src_key: impl SingleArg,
dst_key: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn ts_deleterule(
&mut self,
src_key: impl SingleArg,
dst_key: impl SingleArg
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
source§fn ts_get(
&mut self,
key: impl SingleArg,
options: TsGetOptions
) -> PreparedCommand<'_, Self, Option<(u64, f64)>>where
Self: Sized,
fn ts_get(
&mut self,
key: impl SingleArg,
options: TsGetOptions
) -> PreparedCommand<'_, Self, Option<(u64, f64)>>where
Self: Sized,
source§fn ts_incrby(
&mut self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn ts_incrby(
&mut self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
source§fn ts_info(
&mut self,
key: impl SingleArg,
debug: bool
) -> PreparedCommand<'_, Self, TsInfoResult>where
Self: Sized,
fn ts_info(
&mut self,
key: impl SingleArg,
debug: bool
) -> PreparedCommand<'_, Self, TsInfoResult>where
Self: Sized,
source§fn ts_madd<K: SingleArg, T: SingleArg, R: FromValueArray<u64>>(
&mut self,
items: impl MultipleArgsCollection<(K, T, f64)>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_madd<K: SingleArg, T: SingleArg, R: FromValueArray<u64>>(
&mut self,
items: impl MultipleArgsCollection<(K, T, f64)>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn ts_mget<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
options: TsMGetOptions,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_mget<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
options: TsMGetOptions,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn ts_mrange<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_mrange<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn ts_mrevrange<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_mrevrange<F: SingleArg, R: FromValueArray<TsSample>>(
&mut self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn ts_queryindex<F: SingleArg, R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
fn ts_queryindex<F: SingleArg, R: FromSingleValue, RR: FromValueArray<R>>(
&mut self,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
source§fn ts_range<R: FromValueArray<(u64, f64)>>(
&mut self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_range<R: FromValueArray<(u64, f64)>>(
&mut self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§fn ts_revrange<R: FromValueArray<(u64, f64)>>(
&mut self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn ts_revrange<R: FromValueArray<(u64, f64)>>(
&mut self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
source§impl TopKCommands for Client
Available on crate feature redis-bloom
only.
impl TopKCommands for Client
redis-bloom
only.