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(&self) -> RwLockReadGuard<'_, ClientState>
pub fn get_client_state(&self) -> RwLockReadGuard<'_, ClientState>
Give an immutable generic access to attach any state to a client instance
sourcepub fn get_client_state_mut(&self) -> RwLockWriteGuard<'_, ClientState>
pub fn get_client_state_mut(&self) -> RwLockWriteGuard<'_, ClientState>
Give a mutable generic access to attach any state to a client instance
sourcepub async fn send(
&self,
command: Command,
retry_on_error: Option<bool>
) -> Result<RespBuf>
pub async fn send( &self, command: Command, retry_on_error: Option<bool> ) -> Result<RespBuf>
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};
#[cfg_attr(feature = "tokio-runtime", tokio::main)]
#[cfg_attr(feature = "async-std-runtime", async_std::main)]
async fn main() -> Result<()> {
let client = Client::connect("127.0.0.1:6379").await?;
client
.send(
cmd("MSET")
.arg("key1")
.arg("value1")
.arg("key2")
.arg("value2")
.arg("key3")
.arg("value3")
.arg("key4")
.arg("value4"),
None,
)
.await?
.to::<()>()?;
let values: Vec<String> = client
.send(
cmd("MGET").arg("key1").arg("key2").arg("key3").arg("key4"),
None,
)
.await?
.to()?;
assert_eq!(vec!["value1".to_owned(), "value2".to_owned(), "value3".to_owned(), "value4".to_owned()], values);
Ok(())
}
sourcepub fn send_and_forget(
&self,
command: Command,
retry_on_error: Option<bool>
) -> Result<()>
pub fn send_and_forget( &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(
&self,
commands: Vec<Command>,
retry_on_error: Option<bool>
) -> Result<Vec<RespBuf>>
pub async fn send_batch( &self, commands: Vec<Command>, retry_on_error: Option<bool> ) -> Result<Vec<RespBuf>>
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(&self) -> Transaction
pub fn create_transaction(&self) -> Transaction
Create a new transaction
sourcepub fn create_pipeline(&self) -> Pipeline<'_>
pub fn create_pipeline(&self) -> Pipeline<'_>
Create a new pipeline
sourcepub fn create_pub_sub(&self) -> PubSubStream
pub fn create_pub_sub(&self) -> PubSubStream
Create a new pub sub stream with no upfront subscription
pub fn create_client_tracking_invalidation_stream( &self ) -> Result<impl Stream<Item = Vec<String>>>
Trait Implementations§
source§impl<'a> BitmapCommands<'a> for &'a Client
impl<'a> BitmapCommands<'a> for &'a Client
source§fn bitcount<K>(
self,
key: K,
range: BitRange
) -> PreparedCommand<'a, Self, usize>
fn bitcount<K>( self, key: K, range: BitRange ) -> PreparedCommand<'a, Self, usize>
source§fn bitfield<K, C, E, O>(
self,
key: K,
sub_commands: C
) -> PreparedCommand<'a, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldSubCommand<E, O>>,
fn bitfield<K, C, E, O>(
self,
key: K,
sub_commands: C
) -> PreparedCommand<'a, 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>(
self,
key: K,
get_commands: C
) -> PreparedCommand<'a, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldGetSubCommand<E, O>>,
fn bitfield_readonly<K, C, E, O>(
self,
key: K,
get_commands: C
) -> PreparedCommand<'a, Self, Vec<u64>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
O: SingleArg,
C: MultipleArgsCollection<BitFieldGetSubCommand<E, O>>,
source§fn bitop<D, K, KK>(
self,
operation: BitOperation,
dest_key: D,
keys: KK
) -> PreparedCommand<'a, Self, usize>
fn bitop<D, K, KK>( self, operation: BitOperation, dest_key: D, keys: KK ) -> PreparedCommand<'a, Self, usize>
source§fn bitpos<K>(
self,
key: K,
bit: u64,
range: BitRange
) -> PreparedCommand<'a, Self, usize>
fn bitpos<K>( self, key: K, bit: u64, range: BitRange ) -> PreparedCommand<'a, Self, usize>
source§impl<'a> BlockingCommands<'a> for &'a Client
impl<'a> BlockingCommands<'a> for &'a Client
source§async fn monitor(self) -> Result<MonitorStream>
async fn monitor(self) -> Result<MonitorStream>
source§fn blmove<S, D, E>(
self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere,
timeout: f64
) -> PreparedCommand<'a, Self, E>
fn blmove<S, D, E>( self, source: S, destination: D, where_from: LMoveWhere, where_to: LMoveWhere, timeout: f64 ) -> PreparedCommand<'a, Self, E>
source§fn blmpop<K, KK, E>(
self,
timeout: f64,
keys: KK,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<(String, Vec<E>)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
fn blmpop<K, KK, E>(
self,
timeout: f64,
keys: KK,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<(String, Vec<E>)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
source§fn blpop<K, KK, K1, V>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
fn blpop<K, KK, K1, V>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
source§fn brpop<K, KK, K1, V>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
fn brpop<K, KK, K1, V>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, Option<(K1, V)>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
source§fn bzmpop<K, KK, E>(
self,
timeout: f64,
keys: KK,
where_: ZWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
fn bzmpop<K, KK, E>(
self,
timeout: f64,
keys: KK,
where_: ZWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
source§fn bzpopmax<K, KK, E, K1>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
E: PrimitiveResponse + DeserializeOwned,
fn bzpopmax<K, KK, E, K1>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
E: PrimitiveResponse + DeserializeOwned,
source§fn bzpopmin<K, KK, E, K1>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
E: PrimitiveResponse + DeserializeOwned,
fn bzpopmin<K, KK, E, K1>(
self,
keys: KK,
timeout: f64
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<K1, E>>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
K1: PrimitiveResponse + DeserializeOwned,
E: PrimitiveResponse + DeserializeOwned,
source§impl<'a> BloomCommands<'a> for &'a Client
Available on crate feature redis-bloom
only.
impl<'a> BloomCommands<'a> for &'a Client
redis-bloom
only.source§fn bf_add(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn bf_add(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn bf_exists(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn bf_exists(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn bf_info_all(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, BfInfoResult>where
Self: Sized,
fn bf_info_all(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, BfInfoResult>where
Self: Sized,
source§fn bf_info(
self,
key: impl SingleArg,
param: BfInfoParameter
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn bf_info(
self,
key: impl SingleArg,
param: BfInfoParameter
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn bf_insert<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>,
options: BfInsertOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn bf_insert<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>,
options: BfInsertOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn bf_loadchunk(
self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn bf_loadchunk(
self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
bf_scandump
. Read moresource§fn bf_madd<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn bf_madd<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn bf_mexists<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn bf_mexists<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn bf_reserve(
self,
key: impl SingleArg,
error_rate: f64,
capacity: usize,
options: BfReserveOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn bf_reserve(
self,
key: impl SingleArg,
error_rate: f64,
capacity: usize,
options: BfReserveOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn bf_scandump(
self,
key: impl SingleArg,
iterator: i64
) -> PreparedCommand<'a, Self, BfScanDumpResult>where
Self: Sized,
fn bf_scandump(
self,
key: impl SingleArg,
iterator: i64
) -> PreparedCommand<'a, Self, BfScanDumpResult>where
Self: Sized,
source§impl<'a> ClusterCommands<'a> for &'a Client
impl<'a> ClusterCommands<'a> for &'a Client
source§fn asking(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn asking(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_addslots<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
fn cluster_addslots<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
source§fn cluster_addslotsrange<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
fn cluster_addslotsrange<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
cluster_addslots
command in that they both assign hash slots to nodes. Read moresource§fn cluster_bumpepoch(self) -> PreparedCommand<'a, Self, ClusterBumpEpochResult>where
Self: Sized,
fn cluster_bumpepoch(self) -> PreparedCommand<'a, Self, ClusterBumpEpochResult>where
Self: Sized,
source§fn cluster_count_failure_reports<I>(
self,
node_id: I
) -> PreparedCommand<'a, Self, usize>
fn cluster_count_failure_reports<I>( self, node_id: I ) -> PreparedCommand<'a, Self, usize>
source§fn cluster_countkeysinslot(
self,
slot: usize
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn cluster_countkeysinslot(
self,
slot: usize
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn cluster_delslots<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
fn cluster_delslots<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
source§fn cluster_delslotsrange<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
fn cluster_delslotsrange<S>(self, slots: S) -> PreparedCommand<'a, Self, ()>
cluster_delslotsrange
command in that they both remove hash slots from the node. Read moresource§fn cluster_failover(
self,
option: ClusterFailoverOption
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_failover(
self,
option: ClusterFailoverOption
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_forget<I>(self, node_id: I) -> PreparedCommand<'a, Self, ()>
fn cluster_forget<I>(self, node_id: I) -> PreparedCommand<'a, Self, ()>
source§fn cluster_getkeysinslot(
self,
slot: u16,
count: usize
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_getkeysinslot(
self,
slot: u16,
count: usize
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_info(
self,
slot: u16,
count: usize
) -> PreparedCommand<'a, Self, ClusterInfo>where
Self: Sized,
fn cluster_info(
self,
slot: u16,
count: usize
) -> PreparedCommand<'a, Self, ClusterInfo>where
Self: Sized,
source§fn cluster_keyslot<K>(self, key: K) -> PreparedCommand<'a, Self, u16>
fn cluster_keyslot<K>(self, key: K) -> PreparedCommand<'a, Self, u16>
source§fn cluster_links<I>(self) -> PreparedCommand<'a, Self, Vec<I>>
fn cluster_links<I>(self) -> PreparedCommand<'a, Self, Vec<I>>
source§fn cluster_meet<IP>(
self,
ip: IP,
port: u16,
cluster_bus_port: Option<u16>
) -> PreparedCommand<'a, Self, ()>
fn cluster_meet<IP>( self, ip: IP, port: u16, cluster_bus_port: Option<u16> ) -> PreparedCommand<'a, Self, ()>
source§fn cluster_myid<N>(self) -> PreparedCommand<'a, Self, N>where
Self: Sized,
N: PrimitiveResponse,
fn cluster_myid<N>(self) -> PreparedCommand<'a, Self, N>where
Self: Sized,
N: PrimitiveResponse,
source§fn cluster_nodes<R>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
fn cluster_nodes<R>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
source§fn cluster_replicas<I, R>(self, node_id: I) -> PreparedCommand<'a, Self, R>
fn cluster_replicas<I, R>(self, node_id: I) -> PreparedCommand<'a, Self, R>
source§fn cluster_replicate<I>(self, node_id: I) -> PreparedCommand<'a, Self, ()>
fn cluster_replicate<I>(self, node_id: I) -> PreparedCommand<'a, Self, ()>
source§fn cluster_reset(
self,
reset_type: ClusterResetType
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_reset(
self,
reset_type: ClusterResetType
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_saveconfig(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_saveconfig(self) -> PreparedCommand<'a, 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(
self,
config_epoch: u64
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_set_config_epoch(
self,
config_epoch: u64
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_setslot(
self,
slot: u16,
subcommand: ClusterSetSlotSubCommand
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cluster_setslot(
self,
slot: u16,
subcommand: ClusterSetSlotSubCommand
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cluster_shards<S>(self) -> PreparedCommand<'a, Self, S>
fn cluster_shards<S>(self) -> PreparedCommand<'a, Self, S>
source§fn cluster_slots<S>(self) -> PreparedCommand<'a, Self, S>
fn cluster_slots<S>(self) -> PreparedCommand<'a, Self, S>
source§impl<'a> ConnectionCommands<'a> for &'a Client
impl<'a> ConnectionCommands<'a> for &'a Client
source§fn auth<U, P>(
self,
username: Option<U>,
password: P
) -> PreparedCommand<'a, Self, ()>
fn auth<U, P>( self, username: Option<U>, password: P ) -> PreparedCommand<'a, Self, ()>
source§fn client_caching(
self,
mode: ClientCachingMode
) -> PreparedCommand<'a, Self, Option<()>>where
Self: Sized,
fn client_caching(
self,
mode: ClientCachingMode
) -> PreparedCommand<'a, Self, Option<()>>where
Self: Sized,
source§fn client_getname<CN>(self) -> PreparedCommand<'a, Self, Option<CN>>
fn client_getname<CN>(self) -> PreparedCommand<'a, Self, Option<CN>>
source§fn client_getredir(self) -> PreparedCommand<'a, Self, i64>where
Self: Sized,
fn client_getredir(self) -> PreparedCommand<'a, Self, i64>where
Self: Sized,
source§fn client_id(self) -> PreparedCommand<'a, Self, i64>where
Self: Sized,
fn client_id(self) -> PreparedCommand<'a, Self, i64>where
Self: Sized,
source§fn client_info(self) -> PreparedCommand<'a, Self, ClientInfo>where
Self: Sized,
fn client_info(self) -> PreparedCommand<'a, Self, ClientInfo>where
Self: Sized,
source§fn client_kill(
self,
options: ClientKillOptions
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn client_kill(
self,
options: ClientKillOptions
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn client_list(
self,
options: ClientListOptions
) -> PreparedCommand<'a, Self, ClientListResult>where
Self: Sized,
fn client_list(
self,
options: ClientListOptions
) -> PreparedCommand<'a, Self, ClientListResult>where
Self: Sized,
source§fn client_no_evict(self, no_evict: bool) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn client_no_evict(self, no_evict: bool) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
client eviction
mode for the current connection. Read moresource§fn client_pause(
self,
timeout: u64,
mode: ClientPauseMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn client_pause(
self,
timeout: u64,
mode: ClientPauseMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn client_reply(self, mode: ClientReplyMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn client_reply(self, mode: ClientReplyMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn client_setname<CN>(
self,
connection_name: CN
) -> PreparedCommand<'a, Self, ()>
fn client_setname<CN>( self, connection_name: CN ) -> PreparedCommand<'a, Self, ()>
source§fn client_tracking(
self,
status: ClientTrackingStatus,
options: ClientTrackingOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn client_tracking(
self,
status: ClientTrackingStatus,
options: ClientTrackingOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
server assisted client side caching
. Read moresource§fn client_trackinginfo(self) -> PreparedCommand<'a, Self, ClientTrackingInfo>where
Self: Sized,
fn client_trackinginfo(self) -> PreparedCommand<'a, Self, ClientTrackingInfo>where
Self: Sized,
server assisted client side caching
. Read moresource§fn client_unblock(
self,
client_id: i64,
mode: ClientUnblockMode
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn client_unblock(
self,
client_id: i64,
mode: ClientUnblockMode
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
BRPOP
or XREAD
or WAIT
. Read moresource§fn client_unpause(self) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn client_unpause(self) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
client_pause
. Read moresource§fn echo<M, R>(self, message: M) -> PreparedCommand<'a, Self, R>
fn echo<M, R>(self, message: M) -> PreparedCommand<'a, Self, R>
message
. Read moresource§fn hello(self, options: HelloOptions) -> PreparedCommand<'a, Self, HelloResult>where
Self: Sized,
fn hello(self, options: HelloOptions) -> PreparedCommand<'a, Self, HelloResult>where
Self: Sized,
source§fn ping<R>(self, options: PingOptions) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
fn ping<R>(self, options: PingOptions) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
source§fn quit(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn quit(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§impl<'a> CountMinSketchCommands<'a> for &'a Client
Available on crate feature redis-bloom
only.
impl<'a> CountMinSketchCommands<'a> for &'a Client
redis-bloom
only.source§fn cms_incrby<I: SingleArg, R: CollectionResponse<usize>>(
self,
key: impl SingleArg,
items: impl KeyValueArgsCollection<I, usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn cms_incrby<I: SingleArg, R: CollectionResponse<usize>>(
self,
key: impl SingleArg,
items: impl KeyValueArgsCollection<I, usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn cms_info(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, CmsInfoResult>where
Self: Sized,
fn cms_info(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, CmsInfoResult>where
Self: Sized,
source§fn cms_initbydim(
self,
key: impl SingleArg,
width: usize,
depth: usize
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cms_initbydim(
self,
key: impl SingleArg,
width: usize,
depth: usize
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cms_initbyprob(
self,
key: impl SingleArg,
error: f64,
probability: f64
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cms_initbyprob(
self,
key: impl SingleArg,
error: f64,
probability: f64
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cms_merge<S: SingleArg, W: SingleArgCollection<usize>>(
self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
weights: Option<W>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cms_merge<S: SingleArg, W: SingleArgCollection<usize>>(
self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
weights: Option<W>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cms_query<I: SingleArg, C: CollectionResponse<usize>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, C>where
Self: Sized,
fn cms_query<I: SingleArg, C: CollectionResponse<usize>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, C>where
Self: Sized,
source§impl<'a> CuckooCommands<'a> for &'a Client
Available on crate feature redis-bloom
only.
impl<'a> CuckooCommands<'a> for &'a Client
redis-bloom
only.source§fn cf_add(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cf_add(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn cf_addnx(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn cf_addnx(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn cf_count(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn cf_count(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn cf_del(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn cf_del(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn cf_exists(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn cf_exists(
self,
key: impl SingleArg,
item: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn cf_info(self, key: impl SingleArg) -> PreparedCommand<'a, Self, CfInfoResult>where
Self: Sized,
fn cf_info(self, key: impl SingleArg) -> PreparedCommand<'a, Self, CfInfoResult>where
Self: Sized,
key
Read moresource§fn cf_insert<I: SingleArg>(
self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, Vec<usize>>where
Self: Sized,
fn cf_insert<I: SingleArg>(
self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, Vec<usize>>where
Self: Sized,
source§fn cf_insertnx<I: SingleArg, R: CollectionResponse<i64>>(
self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn cf_insertnx<I: SingleArg, R: CollectionResponse<i64>>(
self,
key: impl SingleArg,
options: CfInsertOptions,
item: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn cf_loadchunk(
self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cf_loadchunk(
self,
key: impl SingleArg,
iterator: i64,
data: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
cf_scandump
. Read moresource§fn cf_mexists<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn cf_mexists<I: SingleArg, R: CollectionResponse<bool>>(
self,
key: impl SingleArg,
items: impl SingleArgCollection<I>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn cf_reserve(
self,
key: impl SingleArg,
capacity: usize,
options: CfReserveOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn cf_reserve(
self,
key: impl SingleArg,
capacity: usize,
options: CfReserveOptions
) -> PreparedCommand<'a, 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§fn cf_scandump(
self,
key: impl SingleArg,
iterator: i64
) -> PreparedCommand<'a, Self, CfScanDumpResult>where
Self: Sized,
fn cf_scandump(
self,
key: impl SingleArg,
iterator: i64
) -> PreparedCommand<'a, Self, CfScanDumpResult>where
Self: Sized,
source§impl<'a> GenericCommands<'a> for &'a Client
impl<'a> GenericCommands<'a> for &'a Client
source§fn copy<S, D>(
self,
source: S,
destination: D,
destination_db: Option<usize>,
replace: bool
) -> PreparedCommand<'a, Self, bool>
fn copy<S, D>( self, source: S, destination: D, destination_db: Option<usize>, replace: bool ) -> PreparedCommand<'a, Self, bool>
source§fn del<K, C>(self, keys: C) -> PreparedCommand<'a, Self, usize>
fn del<K, C>(self, keys: C) -> PreparedCommand<'a, Self, usize>
source§fn dump<K>(self, key: K) -> PreparedCommand<'a, Self, DumpResult>
fn dump<K>(self, key: K) -> PreparedCommand<'a, Self, DumpResult>
source§fn exists<K, C>(self, keys: C) -> PreparedCommand<'a, Self, usize>
fn exists<K, C>(self, keys: C) -> PreparedCommand<'a, Self, usize>
source§fn expire<K>(
self,
key: K,
seconds: u64,
option: ExpireOption
) -> PreparedCommand<'a, Self, bool>
fn expire<K>( self, key: K, seconds: u64, option: ExpireOption ) -> PreparedCommand<'a, Self, bool>
source§fn expireat<K>(
self,
key: K,
unix_time_seconds: u64,
option: ExpireOption
) -> PreparedCommand<'a, Self, bool>
fn expireat<K>( self, key: K, unix_time_seconds: u64, option: ExpireOption ) -> PreparedCommand<'a, Self, bool>
source§fn expiretime<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn expiretime<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn keys<P, K, A>(self, pattern: P) -> PreparedCommand<'a, Self, A>where
Self: Sized,
P: SingleArg,
K: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<K> + DeserializeOwned,
fn keys<P, K, A>(self, pattern: P) -> PreparedCommand<'a, Self, A>where
Self: Sized,
P: SingleArg,
K: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<K> + DeserializeOwned,
source§fn migrate<H, K>(
self,
host: H,
port: u16,
key: K,
destination_db: usize,
timeout: u64,
options: MigrateOptions
) -> PreparedCommand<'a, Self, MigrateResult>
fn migrate<H, K>( self, host: H, port: u16, key: K, destination_db: usize, timeout: u64, options: MigrateOptions ) -> PreparedCommand<'a, Self, MigrateResult>
source§fn move_<K>(self, key: K, db: usize) -> PreparedCommand<'a, Self, i64>
fn move_<K>(self, key: K, db: usize) -> PreparedCommand<'a, Self, i64>
source§fn object_encoding<K, E>(self, key: K) -> PreparedCommand<'a, Self, E>
fn object_encoding<K, E>(self, key: K) -> PreparedCommand<'a, Self, E>
key
Read moresource§fn object_freq<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn object_freq<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
key
. Read moresource§fn object_idle_time<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn object_idle_time<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
key
. Read moresource§fn object_refcount<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn object_refcount<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
key
. Read moresource§fn persist<K>(self, key: K) -> PreparedCommand<'a, Self, bool>
fn persist<K>(self, key: K) -> PreparedCommand<'a, Self, bool>
source§fn pexpire<K>(
self,
key: K,
milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'a, Self, bool>
fn pexpire<K>( self, key: K, milliseconds: u64, option: ExpireOption ) -> PreparedCommand<'a, Self, bool>
source§fn pexpireat<K>(
self,
key: K,
unix_time_milliseconds: u64,
option: ExpireOption
) -> PreparedCommand<'a, Self, bool>
fn pexpireat<K>( self, key: K, unix_time_milliseconds: u64, option: ExpireOption ) -> PreparedCommand<'a, Self, bool>
source§fn pexpiretime<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn pexpiretime<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn pttl<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn pttl<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn randomkey<R>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
fn randomkey<R>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
R: PrimitiveResponse,
source§fn rename<K1, K2>(self, key: K1, new_key: K2) -> PreparedCommand<'a, Self, ()>
fn rename<K1, K2>(self, key: K1, new_key: K2) -> PreparedCommand<'a, Self, ()>
source§fn renamenx<K1, K2>(
self,
key: K1,
new_key: K2
) -> PreparedCommand<'a, Self, bool>
fn renamenx<K1, K2>( self, key: K1, new_key: K2 ) -> PreparedCommand<'a, Self, bool>
source§fn restore<K>(
self,
key: K,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions
) -> PreparedCommand<'a, Self, ()>
fn restore<K>( self, key: K, ttl: u64, serialized_value: Vec<u8>, options: RestoreOptions ) -> PreparedCommand<'a, Self, ()>
source§fn scan<K, A>(
self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'a, Self, (u64, A)>where
Self: Sized,
K: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<K> + DeserializeOwned,
fn scan<K, A>(
self,
cursor: u64,
options: ScanOptions
) -> PreparedCommand<'a, Self, (u64, A)>where
Self: Sized,
K: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<K> + DeserializeOwned,
source§fn sort<K, M, A>(
self,
key: K,
options: SortOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
fn sort<K, M, A>(
self,
key: K,
options: SortOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
source§fn sort_and_store<K, D>(
self,
key: K,
destination: D,
options: SortOptions
) -> PreparedCommand<'a, Self, usize>
fn sort_and_store<K, D>( self, key: K, destination: D, options: SortOptions ) -> PreparedCommand<'a, Self, usize>
source§fn sort_readonly<K, M, A>(
self,
key: K,
options: SortOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
fn sort_readonly<K, M, A>(
self,
key: K,
options: SortOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
source§fn touch<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, usize>
fn touch<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, usize>
source§fn ttl<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn ttl<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn type_<K>(self, key: K) -> PreparedCommand<'a, Self, String>
fn type_<K>(self, key: K) -> PreparedCommand<'a, Self, String>
source§impl<'a> GeoCommands<'a> for &'a Client
impl<'a> GeoCommands<'a> for &'a Client
source§fn geoadd<K, M, I>(
self,
key: K,
condition: GeoAddCondition,
change: bool,
items: I
) -> PreparedCommand<'a, Self, usize>
fn geoadd<K, M, I>( self, key: K, condition: GeoAddCondition, change: bool, items: I ) -> PreparedCommand<'a, Self, usize>
source§fn geodist<K, M>(
self,
key: K,
member1: M,
member2: M,
unit: GeoUnit
) -> PreparedCommand<'a, Self, Option<f64>>
fn geodist<K, M>( self, key: K, member1: M, member2: M, unit: GeoUnit ) -> PreparedCommand<'a, Self, Option<f64>>
source§fn geopos<K, M, C>(
self,
key: K,
members: C
) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
fn geopos<K, M, C>( self, key: K, members: C ) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
source§fn geosearch<K, M1, M2, A>(
self,
key: K,
from: GeoSearchFrom<M1>,
by: GeoSearchBy,
options: GeoSearchOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<GeoSearchResult<M2>> + DeserializeOwned,
fn geosearch<K, M1, M2, A>(
self,
key: K,
from: GeoSearchFrom<M1>,
by: GeoSearchBy,
options: GeoSearchOptions
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M1: SingleArg,
M2: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<GeoSearchResult<M2>> + DeserializeOwned,
source§fn geosearchstore<D, S, M>(
self,
destination: D,
source: S,
from: GeoSearchFrom<M>,
by: GeoSearchBy,
options: GeoSearchStoreOptions
) -> PreparedCommand<'a, Self, usize>
fn geosearchstore<D, S, M>( self, destination: D, source: S, from: GeoSearchFrom<M>, by: GeoSearchBy, options: GeoSearchStoreOptions ) -> PreparedCommand<'a, Self, usize>
source§impl<'a> GraphCommands<'a> for &'a Client
Available on crate feature redis-graph
only.
impl<'a> GraphCommands<'a> for &'a Client
redis-graph
only.source§fn graph_config_get<N, V, R>(
self,
name: impl SingleArg
) -> PreparedCommand<'a, Self, R>
fn graph_config_get<N, V, R>( self, name: impl SingleArg ) -> PreparedCommand<'a, Self, R>
source§fn graph_config_set(
self,
name: impl SingleArg,
value: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn graph_config_set(
self,
name: impl SingleArg,
value: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn graph_delete(
self,
graph: impl SingleArg
) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn graph_delete(
self,
graph: impl SingleArg
) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn graph_explain<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
graph: impl SingleArg,
query: impl SingleArg
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
fn graph_explain<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
graph: impl SingleArg,
query: impl SingleArg
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
source§fn graph_list<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
fn graph_list<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
source§fn graph_profile<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
fn graph_profile<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
source§fn graph_query(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, GraphResultSet>where
Self: Sized,
fn graph_query(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, GraphResultSet>where
Self: Sized,
source§fn graph_ro_query(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, GraphResultSet>where
Self: Sized,
fn graph_ro_query(
self,
graph: impl SingleArg,
query: impl SingleArg,
options: GraphQueryOptions
) -> PreparedCommand<'a, Self, GraphResultSet>where
Self: Sized,
source§fn graph_slowlog<R: CollectionResponse<GraphSlowlogResult>>(
self,
graph: impl SingleArg
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn graph_slowlog<R: CollectionResponse<GraphSlowlogResult>>(
self,
graph: impl SingleArg
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§impl<'a> HashCommands<'a> for &'a Client
impl<'a> HashCommands<'a> for &'a Client
source§fn hdel<K, F, C>(self, key: K, fields: C) -> PreparedCommand<'a, Self, usize>
fn hdel<K, F, C>(self, key: K, fields: C) -> PreparedCommand<'a, Self, usize>
source§fn hexists<K, F>(self, key: K, field: F) -> PreparedCommand<'a, Self, bool>
fn hexists<K, F>(self, key: K, field: F) -> PreparedCommand<'a, Self, bool>
source§fn hget<K, F, V>(self, key: K, field: F) -> PreparedCommand<'a, Self, V>
fn hget<K, F, V>(self, key: K, field: F) -> PreparedCommand<'a, Self, V>
source§fn hgetall<K, F, V, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse,
V: PrimitiveResponse,
A: KeyValueCollectionResponse<F, V>,
fn hgetall<K, F, V, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse,
V: PrimitiveResponse,
A: KeyValueCollectionResponse<F, V>,
source§fn hincrby<K, F>(
self,
key: K,
field: F,
increment: i64
) -> PreparedCommand<'a, Self, i64>
fn hincrby<K, F>( self, key: K, field: F, increment: i64 ) -> PreparedCommand<'a, Self, i64>
source§fn hincrbyfloat<K, F>(
self,
key: K,
field: F,
increment: f64
) -> PreparedCommand<'a, Self, f64>
fn hincrbyfloat<K, F>( self, key: K, field: F, increment: f64 ) -> PreparedCommand<'a, Self, f64>
source§fn hkeys<K, F, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<F> + DeserializeOwned,
fn hkeys<K, F, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<F> + DeserializeOwned,
source§fn hlen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
fn hlen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
source§fn hmget<K, F, V, C, A>(self, key: K, fields: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
V: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<V> + DeserializeOwned,
fn hmget<K, F, V, C, A>(self, key: K, fields: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: SingleArg,
C: SingleArgCollection<F>,
V: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<V> + DeserializeOwned,
source§fn hrandfield<K, F>(self, key: K) -> PreparedCommand<'a, Self, F>
fn hrandfield<K, F>(self, key: K) -> PreparedCommand<'a, Self, F>
source§fn hrandfields<K, F, A>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<F> + DeserializeOwned,
fn hrandfields<K, F, A>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<F> + DeserializeOwned,
source§fn hrandfields_with_values<K, F, V, A>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse,
V: PrimitiveResponse,
A: KeyValueCollectionResponse<F, V>,
fn hrandfields_with_values<K, F, V, A>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse,
V: PrimitiveResponse,
A: KeyValueCollectionResponse<F, V>,
source§fn hscan<K, F, V>(
self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'a, Self, HScanResult<F, V>>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
fn hscan<K, F, V>(
self,
key: K,
cursor: u64,
options: HScanOptions
) -> PreparedCommand<'a, Self, HScanResult<F, V>>where
Self: Sized,
K: SingleArg,
F: PrimitiveResponse + DeserializeOwned,
V: PrimitiveResponse + DeserializeOwned,
source§fn hset<K, F, V, I>(self, key: K, items: I) -> PreparedCommand<'a, Self, usize>
fn hset<K, F, V, I>(self, key: K, items: I) -> PreparedCommand<'a, Self, usize>
source§fn hsetnx<K, F, V>(
self,
key: K,
field: F,
value: V
) -> PreparedCommand<'a, Self, bool>
fn hsetnx<K, F, V>( self, key: K, field: F, value: V ) -> PreparedCommand<'a, Self, bool>
source§fn hstrlen<K, F>(self, key: K, field: F) -> PreparedCommand<'a, Self, usize>
fn hstrlen<K, F>(self, key: K, field: F) -> PreparedCommand<'a, Self, usize>
source§fn hvals<K, V, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<V> + DeserializeOwned,
fn hvals<K, V, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<V> + DeserializeOwned,
source§impl<'a> HyperLogLogCommands<'a> for &'a Client
impl<'a> HyperLogLogCommands<'a> for &'a Client
source§fn pfadd<K, E, EE>(
self,
key: K,
elements: EE
) -> PreparedCommand<'a, Self, bool>
fn pfadd<K, E, EE>( self, key: K, elements: EE ) -> PreparedCommand<'a, Self, bool>
source§fn pfcount<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, usize>
fn pfcount<K, KK>(self, keys: KK) -> PreparedCommand<'a, Self, usize>
source§impl<'a> JsonCommands<'a> for &'a Client
Available on crate feature redis-json
only.
impl<'a> JsonCommands<'a> for &'a Client
redis-json
only.source§fn json_arrappend<K, P, V, VV, R>(
self,
key: K,
path: P,
values: VV
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: CollectionResponse<Option<usize>>,
fn json_arrappend<K, P, V, VV, R>(
self,
key: K,
path: P,
values: VV
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: CollectionResponse<Option<usize>>,
source§fn json_arrindex<K, P, V, R>(
self,
key: K,
path: P,
value: V,
options: JsonArrIndexOptions
) -> PreparedCommand<'a, Self, R>
fn json_arrindex<K, P, V, R>( self, key: K, path: P, value: V, options: JsonArrIndexOptions ) -> PreparedCommand<'a, Self, R>
source§fn json_arrinsert<K, P, V, VV, R>(
self,
key: K,
path: P,
index: isize,
values: VV
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: CollectionResponse<Option<usize>>,
fn json_arrinsert<K, P, V, VV, R>(
self,
key: K,
path: P,
index: isize,
values: VV
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
P: SingleArg,
V: SingleArg,
VV: SingleArgCollection<V>,
R: CollectionResponse<Option<usize>>,
source§fn json_arrlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
fn json_arrlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
source§fn json_arrpop<K, P, R, RR>(
self,
key: K,
path: P,
index: isize
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
fn json_arrpop<K, P, R, RR>(
self,
key: K,
path: P,
index: isize
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
source§fn json_arrtrim<K, P, R>(
self,
key: K,
path: P,
start: isize,
stop: isize
) -> PreparedCommand<'a, Self, R>
fn json_arrtrim<K, P, R>( self, key: K, path: P, start: isize, stop: isize ) -> PreparedCommand<'a, Self, R>
source§fn json_clear<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
fn json_clear<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
source§fn json_debug_memory<K, P, R>(
self,
key: K,
path: P
) -> PreparedCommand<'a, Self, R>
fn json_debug_memory<K, P, R>( self, key: K, path: P ) -> PreparedCommand<'a, Self, R>
source§fn json_del<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
fn json_del<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
source§fn json_forget<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
fn json_forget<K, P>(self, key: K, path: P) -> PreparedCommand<'a, Self, usize>
source§fn json_get<K, V>(
self,
key: K,
options: JsonGetOptions
) -> PreparedCommand<'a, Self, V>
fn json_get<K, V>( self, key: K, options: JsonGetOptions ) -> PreparedCommand<'a, Self, V>
source§fn json_mget<K, KK, P, V, VV>(
self,
keys: KK,
path: P
) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
P: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
VV: CollectionResponse<V>,
fn json_mget<K, KK, P, V, VV>(
self,
keys: KK,
path: P
) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
P: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
VV: CollectionResponse<V>,
source§fn json_numincrby<K, P, V, R>(
self,
key: K,
path: P,
value: V
) -> PreparedCommand<'a, Self, R>
fn json_numincrby<K, P, V, R>( self, key: K, path: P, value: V ) -> PreparedCommand<'a, Self, R>
source§fn json_nummultby<K, P, V, R>(
self,
key: K,
path: P,
value: V
) -> PreparedCommand<'a, Self, R>
fn json_nummultby<K, P, V, R>( self, key: K, path: P, value: V ) -> PreparedCommand<'a, Self, R>
source§fn json_objkeys<K, P, R, RR>(
self,
key: K,
path: P
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<Vec<R>>,
fn json_objkeys<K, P, R, RR>(
self,
key: K,
path: P
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<Vec<R>>,
path
Read moresource§fn json_objlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
fn json_objlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
source§fn json_resp<K, P, VV>(self, key: K, path: P) -> PreparedCommand<'a, Self, VV>
fn json_resp<K, P, VV>(self, key: K, path: P) -> PreparedCommand<'a, Self, VV>
Redis serialization protocol specification
form Read moresource§fn json_set<K, P, V>(
self,
key: K,
path: P,
value: V,
condition: SetCondition
) -> PreparedCommand<'a, Self, ()>
fn json_set<K, P, V>( self, key: K, path: P, value: V, condition: SetCondition ) -> PreparedCommand<'a, Self, ()>
source§fn json_strappend<K, P, V, R>(
self,
key: K,
path: P,
value: V
) -> PreparedCommand<'a, Self, R>
fn json_strappend<K, P, V, R>( self, key: K, path: P, value: V ) -> PreparedCommand<'a, Self, R>
source§fn json_strlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
fn json_strlen<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
source§fn json_toggle<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
fn json_toggle<K, P, R>(self, key: K, path: P) -> PreparedCommand<'a, Self, R>
path
Read moresource§fn json_type<K, P, R, RR>(
self,
key: K,
path: P
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
fn json_type<K, P, R, RR>(
self,
key: K,
path: P
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
K: SingleArg,
P: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
path
Read moresource§impl<'a> ListCommands<'a> for &'a Client
impl<'a> ListCommands<'a> for &'a Client
source§fn lindex<K, E>(self, key: K, index: isize) -> PreparedCommand<'a, Self, E>
fn lindex<K, E>(self, key: K, index: isize) -> PreparedCommand<'a, Self, E>
source§fn linsert<K, E>(
self,
key: K,
where_: LInsertWhere,
pivot: E,
element: E
) -> PreparedCommand<'a, Self, usize>
fn linsert<K, E>( self, key: K, where_: LInsertWhere, pivot: E, element: E ) -> PreparedCommand<'a, Self, usize>
source§fn llen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
fn llen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
source§fn lmove<S, D, E>(
self,
source: S,
destination: D,
where_from: LMoveWhere,
where_to: LMoveWhere
) -> PreparedCommand<'a, Self, E>
fn lmove<S, D, E>( self, source: S, destination: D, where_from: LMoveWhere, where_to: LMoveWhere ) -> PreparedCommand<'a, Self, E>
source§fn lmpop<K, E, C>(
self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'a, Self, (String, Vec<E>)>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
C: SingleArgCollection<K>,
fn lmpop<K, E, C>(
self,
keys: C,
where_: LMoveWhere,
count: usize
) -> PreparedCommand<'a, Self, (String, Vec<E>)>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
C: SingleArgCollection<K>,
source§fn lpop<K, E, A>(self, key: K, count: usize) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<E> + DeserializeOwned,
fn lpop<K, E, A>(self, key: K, count: usize) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<E> + DeserializeOwned,
source§fn lpos<K, E>(
self,
key: K,
element: E,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'a, Self, Option<usize>>
fn lpos<K, E>( self, key: K, element: E, rank: Option<usize>, max_len: Option<usize> ) -> PreparedCommand<'a, Self, Option<usize>>
source§fn lpos_with_count<K, E, A>(
self,
key: K,
element: E,
num_matches: usize,
rank: Option<usize>,
max_len: Option<usize>
) -> PreparedCommand<'a, Self, A>
fn lpos_with_count<K, E, A>( self, key: K, element: E, num_matches: usize, rank: Option<usize>, max_len: Option<usize> ) -> PreparedCommand<'a, Self, A>
source§fn lpush<K, E, C>(self, key: K, elements: C) -> PreparedCommand<'a, Self, usize>
fn lpush<K, E, C>(self, key: K, elements: C) -> PreparedCommand<'a, Self, usize>
source§fn lpushx<K, E, C>(
self,
key: K,
elements: C
) -> PreparedCommand<'a, Self, usize>
fn lpushx<K, E, C>( self, key: K, elements: C ) -> PreparedCommand<'a, Self, usize>
source§fn lrange<K, E, A>(
self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<E> + DeserializeOwned,
fn lrange<K, E, A>(
self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
A: CollectionResponse<E> + DeserializeOwned,
source§fn lrem<K, E>(
self,
key: K,
count: isize,
element: E
) -> PreparedCommand<'a, Self, usize>
fn lrem<K, E>( self, key: K, count: isize, element: E ) -> PreparedCommand<'a, Self, usize>
source§fn lset<K, E>(
self,
key: K,
index: isize,
element: E
) -> PreparedCommand<'a, Self, ()>
fn lset<K, E>( self, key: K, index: isize, element: E ) -> PreparedCommand<'a, Self, ()>
source§fn ltrim<K>(
self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'a, Self, ()>
fn ltrim<K>( self, key: K, start: isize, stop: isize ) -> PreparedCommand<'a, Self, ()>
source§fn rpop<K, E, C>(self, key: K, count: usize) -> PreparedCommand<'a, Self, C>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
C: CollectionResponse<E> + DeserializeOwned,
fn rpop<K, E, C>(self, key: K, count: usize) -> PreparedCommand<'a, Self, C>where
Self: Sized,
K: SingleArg,
E: PrimitiveResponse + DeserializeOwned,
C: CollectionResponse<E> + DeserializeOwned,
source§fn rpush<K, E, C>(self, key: K, elements: C) -> PreparedCommand<'a, Self, usize>
fn rpush<K, E, C>(self, key: K, elements: C) -> PreparedCommand<'a, Self, usize>
source§impl<'a> PubSubCommands<'a> for &'a Client
impl<'a> PubSubCommands<'a> for &'a Client
source§async fn subscribe<C, CC>(self, channels: CC) -> Result<PubSubStream>
async fn subscribe<C, CC>(self, channels: CC) -> Result<PubSubStream>
source§async fn psubscribe<P, PP>(self, patterns: PP) -> Result<PubSubStream>
async fn psubscribe<P, PP>(self, patterns: PP) -> Result<PubSubStream>
source§async fn ssubscribe<C, CC>(self, shardchannels: CC) -> Result<PubSubStream>
async fn ssubscribe<C, CC>(self, shardchannels: CC) -> Result<PubSubStream>
source§fn publish<C, M>(
self,
channel: C,
message: M
) -> PreparedCommand<'a, Self, usize>
fn publish<C, M>( self, channel: C, message: M ) -> PreparedCommand<'a, Self, usize>
source§fn pub_sub_channels<C, CC>(
self,
options: PubSubChannelsOptions
) -> PreparedCommand<'a, Self, CC>
fn pub_sub_channels<C, CC>( self, options: PubSubChannelsOptions ) -> PreparedCommand<'a, Self, CC>
source§fn pub_sub_numpat(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn pub_sub_numpat(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn pub_sub_numsub<C, CC, R, RR>(
self,
channels: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: PrimitiveResponse,
RR: KeyValueCollectionResponse<R, usize>,
fn pub_sub_numsub<C, CC, R, RR>(
self,
channels: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: PrimitiveResponse,
RR: KeyValueCollectionResponse<R, usize>,
source§fn pub_sub_shardchannels<C, CC>(
self,
options: PubSubChannelsOptions
) -> PreparedCommand<'a, Self, CC>
fn pub_sub_shardchannels<C, CC>( self, options: PubSubChannelsOptions ) -> PreparedCommand<'a, Self, CC>
source§fn pub_sub_shardnumsub<C, CC, R, RR>(
self,
channels: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: PrimitiveResponse,
RR: KeyValueCollectionResponse<R, usize>,
fn pub_sub_shardnumsub<C, CC, R, RR>(
self,
channels: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
R: PrimitiveResponse,
RR: KeyValueCollectionResponse<R, usize>,
source§impl<'a> ScriptingCommands<'a> for &'a Client
impl<'a> ScriptingCommands<'a> for &'a Client
source§fn eval<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn eval<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
source§fn eval_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn eval_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
source§fn evalsha<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn evalsha<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
source§fn evalsha_readonly<R>(
self,
builder: CallBuilder
) -> PreparedCommand<'a, Self, R>
fn evalsha_readonly<R>( self, builder: CallBuilder ) -> PreparedCommand<'a, Self, R>
source§fn fcall<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn fcall<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
source§fn fcall_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn fcall_readonly<R>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
source§fn function_delete<L>(self, library_name: L) -> PreparedCommand<'a, Self, ()>
fn function_delete<L>(self, library_name: L) -> PreparedCommand<'a, Self, ()>
source§fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>where
Self: Sized,
fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>where
Self: Sized,
function_restore
command. Read moresource§fn function_flush(
self,
flushing_mode: FlushingMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn function_flush(
self,
flushing_mode: FlushingMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn function_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn function_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn function_list(
self,
options: FunctionListOptions
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>where
Self: Sized,
fn function_list(
self,
options: FunctionListOptions
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>where
Self: Sized,
source§fn function_load<F, L>(
self,
replace: bool,
function_code: F
) -> PreparedCommand<'a, Self, L>
fn function_load<F, L>( self, replace: bool, function_code: F ) -> PreparedCommand<'a, Self, L>
source§fn function_restore<P>(
self,
serialized_payload: P,
policy: FunctionRestorePolicy
) -> PreparedCommand<'a, Self, ()>
fn function_restore<P>( self, serialized_payload: P, policy: FunctionRestorePolicy ) -> PreparedCommand<'a, Self, ()>
source§fn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>where
Self: Sized,
fn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>where
Self: Sized,
source§fn script_debug(
self,
debug_mode: ScriptDebugMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_debug(
self,
debug_mode: ScriptDebugMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn script_exists<S, C>(self, sha1s: C) -> PreparedCommand<'a, Self, Vec<bool>>
fn script_exists<S, C>(self, sha1s: C) -> PreparedCommand<'a, Self, Vec<bool>>
source§fn script_flush(
self,
flushing_mode: FlushingMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_flush(
self,
flushing_mode: FlushingMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn script_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn script_kill(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn script_load<S, V>(self, script: S) -> PreparedCommand<'a, Self, V>
fn script_load<S, V>(self, script: S) -> PreparedCommand<'a, Self, V>
source§impl<'a> SearchCommands<'a> for &'a Client
Available on crate feature redis-search
only.
impl<'a> SearchCommands<'a> for &'a Client
redis-search
only.source§fn ft_aggregate<I, Q>(
self,
index: I,
query: Q,
options: FtAggregateOptions
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_aggregate<I, Q>( self, index: I, query: Q, options: FtAggregateOptions ) -> PreparedCommand<'a, Self, FtAggregateResult>
source§fn ft_aliasadd<A, I>(self, alias: A, index: I) -> PreparedCommand<'a, Self, ()>
fn ft_aliasadd<A, I>(self, alias: A, index: I) -> PreparedCommand<'a, Self, ()>
source§fn ft_aliasdel<A>(self, alias: A) -> PreparedCommand<'a, Self, ()>
fn ft_aliasdel<A>(self, alias: A) -> PreparedCommand<'a, Self, ()>
source§fn ft_aliasupdate<A, I>(
self,
alias: A,
index: I
) -> PreparedCommand<'a, Self, ()>
fn ft_aliasupdate<A, I>( self, alias: A, index: I ) -> PreparedCommand<'a, Self, ()>
source§fn ft_alter<I>(
self,
index: I,
skip_initial_scan: bool,
attribute: FtFieldSchema
) -> PreparedCommand<'a, Self, ()>
fn ft_alter<I>( self, index: I, skip_initial_scan: bool, attribute: FtFieldSchema ) -> PreparedCommand<'a, Self, ()>
source§fn ft_config_get<O, N, V, R>(self, option: O) -> PreparedCommand<'a, Self, R>where
Self: Sized,
O: SingleArg,
N: PrimitiveResponse,
V: PrimitiveResponse,
R: KeyValueCollectionResponse<N, V>,
fn ft_config_get<O, N, V, R>(self, option: O) -> PreparedCommand<'a, Self, R>where
Self: Sized,
O: SingleArg,
N: PrimitiveResponse,
V: PrimitiveResponse,
R: KeyValueCollectionResponse<N, V>,
source§fn ft_config_set<O, V>(
self,
option: O,
value: V
) -> PreparedCommand<'a, Self, ()>
fn ft_config_set<O, V>( self, option: O, value: V ) -> PreparedCommand<'a, Self, ()>
source§fn ft_create<I, S>(
self,
index: I,
options: FtCreateOptions,
schema: S
) -> PreparedCommand<'a, Self, ()>
fn ft_create<I, S>( self, index: I, options: FtCreateOptions, schema: S ) -> PreparedCommand<'a, Self, ()>
source§fn ft_cursor_del<I>(
self,
index: I,
cursor_id: u64
) -> PreparedCommand<'a, Self, ()>
fn ft_cursor_del<I>( self, index: I, cursor_id: u64 ) -> PreparedCommand<'a, Self, ()>
source§fn ft_cursor_read<I>(
self,
index: I,
cursor_id: u64
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_cursor_read<I>( self, index: I, cursor_id: u64 ) -> PreparedCommand<'a, Self, FtAggregateResult>
source§fn ft_dictadd<D, T, TT>(
self,
dict: D,
terms: TT
) -> PreparedCommand<'a, Self, usize>
fn ft_dictadd<D, T, TT>( self, dict: D, terms: TT ) -> PreparedCommand<'a, Self, usize>
source§fn ft_dictdel<D, T, TT>(
self,
dict: D,
terms: TT
) -> PreparedCommand<'a, Self, usize>
fn ft_dictdel<D, T, TT>( self, dict: D, terms: TT ) -> PreparedCommand<'a, Self, usize>
source§fn ft_dictdump<D, T, TT>(self, dict: D) -> PreparedCommand<'a, Self, TT>where
Self: Sized,
D: SingleArg,
T: PrimitiveResponse + DeserializeOwned,
TT: CollectionResponse<T>,
fn ft_dictdump<D, T, TT>(self, dict: D) -> PreparedCommand<'a, Self, TT>where
Self: Sized,
D: SingleArg,
T: PrimitiveResponse + DeserializeOwned,
TT: CollectionResponse<T>,
source§fn ft_dropindex<I>(self, index: I, dd: bool) -> PreparedCommand<'a, Self, ()>
fn ft_dropindex<I>(self, index: I, dd: bool) -> PreparedCommand<'a, Self, ()>
source§fn ft_explain<I, Q, R>(
self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'a, Self, R>
fn ft_explain<I, Q, R>( self, index: I, query: Q, dialect_version: Option<u64> ) -> PreparedCommand<'a, Self, R>
source§fn ft_explaincli<I, Q, R, RR>(
self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
fn ft_explaincli<I, Q, R, RR>(
self,
index: I,
query: Q,
dialect_version: Option<u64>
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
I: SingleArg,
Q: SingleArg,
R: PrimitiveResponse + DeserializeOwned,
RR: CollectionResponse<R>,
redis-cli --raw
Read moresource§fn ft_info(
self,
index: impl SingleArg
) -> PreparedCommand<'a, Self, FtInfoResult>where
Self: Sized,
fn ft_info(
self,
index: impl SingleArg
) -> PreparedCommand<'a, Self, FtInfoResult>where
Self: Sized,
source§fn ft_list<R, RR>(self) -> PreparedCommand<'a, Self, RR>
fn ft_list<R, RR>(self) -> PreparedCommand<'a, Self, RR>
source§fn ft_profile_search<I, Q, QQ>(
self,
index: I,
limited: bool,
query: QQ
) -> PreparedCommand<'a, Self, FtProfileSearchResult>
fn ft_profile_search<I, Q, QQ>( self, index: I, limited: bool, query: QQ ) -> PreparedCommand<'a, Self, FtProfileSearchResult>
source§fn ft_profile_aggregate<I, Q, QQ>(
self,
index: I,
limited: bool,
query: QQ
) -> PreparedCommand<'a, Self, FtProfileAggregateResult>
fn ft_profile_aggregate<I, Q, QQ>( self, index: I, limited: bool, query: QQ ) -> PreparedCommand<'a, Self, FtProfileAggregateResult>
ft_aggregate
command and collects performance information Read moresource§fn ft_search<I, Q>(
self,
index: I,
query: Q,
options: FtSearchOptions
) -> PreparedCommand<'a, Self, FtSearchResult>
fn ft_search<I, Q>( self, index: I, query: Q, options: FtSearchOptions ) -> PreparedCommand<'a, Self, FtSearchResult>
source§fn ft_spellcheck<I, Q>(
self,
index: I,
query: Q,
options: FtSpellCheckOptions
) -> PreparedCommand<'a, Self, FtSpellCheckResult>
fn ft_spellcheck<I, Q>( self, index: I, query: Q, options: FtSpellCheckOptions ) -> PreparedCommand<'a, Self, FtSpellCheckResult>
source§fn ft_syndump<I, R>(self, index: I) -> PreparedCommand<'a, Self, R>
fn ft_syndump<I, R>(self, index: I) -> PreparedCommand<'a, Self, R>
source§fn ft_synupdate<T: SingleArg>(
self,
index: impl SingleArg,
synonym_group_id: impl SingleArg,
skip_initial_scan: bool,
terms: impl SingleArgCollection<T>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ft_synupdate<T: SingleArg>(
self,
index: impl SingleArg,
synonym_group_id: impl SingleArg,
skip_initial_scan: bool,
terms: impl SingleArgCollection<T>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ft_tagvals<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
index: impl SingleArg,
field_name: impl SingleArg
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
fn ft_tagvals<R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
index: impl SingleArg,
field_name: impl SingleArg
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
source§fn ft_sugadd(
self,
key: impl SingleArg,
string: impl SingleArg,
score: f64,
options: FtSugAddOptions
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn ft_sugadd(
self,
key: impl SingleArg,
string: impl SingleArg,
score: f64,
options: FtSugAddOptions
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn ft_sugdel(
self,
key: impl SingleArg,
string: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
fn ft_sugdel(
self,
key: impl SingleArg,
string: impl SingleArg
) -> PreparedCommand<'a, Self, bool>where
Self: Sized,
source§fn ft_sugget(
self,
key: impl SingleArg,
prefix: impl SingleArg,
options: FtSugGetOptions
) -> PreparedCommand<'a, Self, Vec<FtSuggestion>>where
Self: Sized,
fn ft_sugget(
self,
key: impl SingleArg,
prefix: impl SingleArg,
options: FtSugGetOptions
) -> PreparedCommand<'a, Self, Vec<FtSuggestion>>where
Self: Sized,
source§impl<'a> SentinelCommands<'a> for &'a Client
impl<'a> SentinelCommands<'a> for &'a Client
source§fn sentinel_config_get<N, RN, RV, R>(
self,
name: N
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
N: SingleArg,
RN: PrimitiveResponse,
RV: PrimitiveResponse,
R: KeyValueCollectionResponse<RN, RV>,
fn sentinel_config_get<N, RN, RV, R>(
self,
name: N
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
N: SingleArg,
RN: PrimitiveResponse,
RV: PrimitiveResponse,
R: KeyValueCollectionResponse<RN, RV>,
source§fn sentinel_config_set<N, V>(
self,
name: N,
value: V
) -> PreparedCommand<'a, Self, ()>
fn sentinel_config_set<N, V>( self, name: N, value: V ) -> PreparedCommand<'a, Self, ()>
source§fn sentinel_ckquorum<N>(self, master_name: N) -> PreparedCommand<'a, Self, ()>
fn sentinel_ckquorum<N>(self, master_name: N) -> PreparedCommand<'a, Self, ()>
source§fn sentinel_failover<N>(self, master_name: N) -> PreparedCommand<'a, Self, ()>
fn sentinel_failover<N>(self, master_name: N) -> PreparedCommand<'a, Self, ()>
source§fn sentinel_flushconfig(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn sentinel_flushconfig(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn sentinel_get_master_addr_by_name<N>(
self,
master_name: N
) -> PreparedCommand<'a, Self, Option<(String, u16)>>
fn sentinel_get_master_addr_by_name<N>( self, master_name: N ) -> PreparedCommand<'a, Self, Option<(String, u16)>>
source§fn sentinel_info_cache<N, NN, R>(
self,
master_names: NN
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
N: SingleArg,
NN: MultipleArgsCollection<N>,
R: KeyValueCollectionResponse<String, Vec<(u64, String)>>,
fn sentinel_info_cache<N, NN, R>(
self,
master_names: NN
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
N: SingleArg,
NN: MultipleArgsCollection<N>,
R: KeyValueCollectionResponse<String, Vec<(u64, String)>>,
info
output from masters and replicas.source§fn sentinel_master<N>(
self,
master_name: N
) -> PreparedCommand<'a, Self, SentinelMasterInfo>
fn sentinel_master<N>( self, master_name: N ) -> PreparedCommand<'a, Self, SentinelMasterInfo>
source§fn sentinel_masters(self) -> PreparedCommand<'a, Self, Vec<SentinelMasterInfo>>where
Self: Sized,
fn sentinel_masters(self) -> PreparedCommand<'a, Self, Vec<SentinelMasterInfo>>where
Self: Sized,
source§fn sentinel_monitor<N, I>(
self,
name: N,
ip: I,
port: u16,
quorum: usize
) -> PreparedCommand<'a, Self, ()>
fn sentinel_monitor<N, I>( self, name: N, ip: I, port: u16, quorum: usize ) -> PreparedCommand<'a, Self, ()>
source§fn sentinel_remove<N>(self, name: N) -> PreparedCommand<'a, Self, ()>
fn sentinel_remove<N>(self, name: N) -> PreparedCommand<'a, Self, ()>
source§fn sentinel_set<N, O, V, C>(
self,
name: N,
configs: C
) -> PreparedCommand<'a, Self, ()>
fn sentinel_set<N, O, V, C>( self, name: N, configs: C ) -> PreparedCommand<'a, Self, ()>
config_set
command of Redis,
and is used in order to change configuration parameters of a specific master. Read moresource§fn sentinel_myid(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn sentinel_myid(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn sentinel_pending_scripts(self) -> PreparedCommand<'a, Self, Vec<Value>>where
Self: Sized,
fn sentinel_pending_scripts(self) -> PreparedCommand<'a, Self, Vec<Value>>where
Self: Sized,
source§fn sentinel_replicas<N>(
self,
master_name: N
) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
fn sentinel_replicas<N>( self, master_name: N ) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
source§fn sentinel_reset<P>(self, pattern: P) -> PreparedCommand<'a, Self, usize>
fn sentinel_reset<P>(self, pattern: P) -> PreparedCommand<'a, Self, usize>
source§fn sentinel_sentinels<N>(
self,
master_name: N
) -> PreparedCommand<'a, Self, Vec<SentinelInfo>>
fn sentinel_sentinels<N>( self, master_name: N ) -> PreparedCommand<'a, Self, Vec<SentinelInfo>>
source§fn sentinel_simulate_failure(
self,
mode: SentinelSimulateFailureMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn sentinel_simulate_failure(
self,
mode: SentinelSimulateFailureMode
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§impl<'a> ServerCommands<'a> for &'a Client
impl<'a> ServerCommands<'a> for &'a Client
source§fn acl_cat<C, CC>(self, options: AclCatOptions) -> PreparedCommand<'a, Self, CC>
fn acl_cat<C, CC>(self, options: AclCatOptions) -> PreparedCommand<'a, Self, CC>
source§fn acl_deluser<U, UU>(self, usernames: UU) -> PreparedCommand<'a, Self, usize>
fn acl_deluser<U, UU>(self, usernames: UU) -> PreparedCommand<'a, Self, usize>
source§fn acl_dryrun<U, C, R>(
self,
username: U,
command: C,
options: AclDryRunOptions
) -> PreparedCommand<'a, Self, R>
fn acl_dryrun<U, C, R>( self, username: U, command: C, options: AclDryRunOptions ) -> PreparedCommand<'a, Self, R>
source§fn acl_genpass<R: PrimitiveResponse>(
self,
options: AclGenPassOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_genpass<R: PrimitiveResponse>(
self,
options: AclGenPassOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn acl_getuser<U, RR>(self, username: U) -> PreparedCommand<'a, Self, RR>
fn acl_getuser<U, RR>(self, username: U) -> PreparedCommand<'a, Self, RR>
source§fn acl_list(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn acl_list(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
source§fn acl_load(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn acl_load(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn acl_log<EE>(
self,
options: AclLogOptions
) -> PreparedCommand<'a, Self, Vec<EE>>
fn acl_log<EE>( self, options: AclLogOptions ) -> PreparedCommand<'a, Self, Vec<EE>>
source§fn acl_save(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn acl_save(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn acl_setuser<U, R, RR>(
self,
username: U,
rules: RR
) -> PreparedCommand<'a, Self, ()>
fn acl_setuser<U, R, RR>( self, username: U, rules: RR ) -> PreparedCommand<'a, Self, ()>
source§fn acl_users<U, UU>(self) -> PreparedCommand<'a, Self, UU>
fn acl_users<U, UU>(self) -> PreparedCommand<'a, Self, UU>
source§fn acl_whoami<U: PrimitiveResponse>(self) -> PreparedCommand<'a, Self, U>where
Self: Sized,
fn acl_whoami<U: PrimitiveResponse>(self) -> PreparedCommand<'a, Self, U>where
Self: Sized,
source§fn command(self) -> PreparedCommand<'a, Self, Vec<CommandInfo>>where
Self: Sized,
fn command(self) -> PreparedCommand<'a, Self, Vec<CommandInfo>>where
Self: Sized,
source§fn command_count(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn command_count(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn command_docs<N, NN, DD>(
self,
command_names: NN
) -> PreparedCommand<'a, Self, DD>where
Self: Sized,
N: SingleArg,
NN: SingleArgCollection<N>,
DD: KeyValueCollectionResponse<String, CommandDoc>,
fn command_docs<N, NN, DD>(
self,
command_names: NN
) -> PreparedCommand<'a, Self, DD>where
Self: Sized,
N: SingleArg,
NN: SingleArgCollection<N>,
DD: KeyValueCollectionResponse<String, CommandDoc>,
source§fn command_getkeys<A, AA, KK>(self, args: AA) -> PreparedCommand<'a, Self, KK>
fn command_getkeys<A, AA, KK>(self, args: AA) -> PreparedCommand<'a, Self, KK>
source§fn command_getkeysandflags<A, AA, KK>(
self,
args: AA
) -> PreparedCommand<'a, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: KeyValueCollectionResponse<String, Vec<String>>,
fn command_getkeysandflags<A, AA, KK>(
self,
args: AA
) -> PreparedCommand<'a, Self, KK>where
Self: Sized,
A: SingleArg,
AA: SingleArgCollection<A>,
KK: KeyValueCollectionResponse<String, Vec<String>>,
source§fn command_info<N, NN>(
self,
command_names: NN
) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
fn command_info<N, NN>( self, command_names: NN ) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
source§fn command_list<CC>(
self,
options: CommandListOptions
) -> PreparedCommand<'a, Self, CC>
fn command_list<CC>( self, options: CommandListOptions ) -> PreparedCommand<'a, Self, CC>
source§fn config_get<P, PP, V, VV>(self, params: PP) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
P: SingleArg,
PP: SingleArgCollection<P>,
V: PrimitiveResponse,
VV: KeyValueCollectionResponse<String, V>,
fn config_get<P, PP, V, VV>(self, params: PP) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
P: SingleArg,
PP: SingleArgCollection<P>,
V: PrimitiveResponse,
VV: KeyValueCollectionResponse<String, V>,
source§fn config_resetstat(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn config_resetstat(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn config_rewrite(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn config_rewrite(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
config_set
command. Read moresource§fn config_set<P, V, C>(self, configs: C) -> PreparedCommand<'a, Self, ()>
fn config_set<P, V, C>(self, configs: C) -> PreparedCommand<'a, Self, ()>
source§fn dbsize(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn dbsize(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn failover(self, options: FailOverOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn failover(self, options: FailOverOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn flushdb(self, flushing_mode: FlushingMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn flushdb(self, flushing_mode: FlushingMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn flushall(self, flushing_mode: FlushingMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn flushall(self, flushing_mode: FlushingMode) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn info<SS>(self, sections: SS) -> PreparedCommand<'a, Self, String>
fn info<SS>(self, sections: SS) -> PreparedCommand<'a, Self, String>
source§fn lastsave(self) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
fn lastsave(self) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
source§fn latency_doctor(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn latency_doctor(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn latency_graph(
self,
event: LatencyHistoryEvent
) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn latency_graph(
self,
event: LatencyHistoryEvent
) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn latency_histogram<C, CC, RR>(
self,
commands: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
RR: KeyValueCollectionResponse<String, CommandHistogram>,
fn latency_histogram<C, CC, RR>(
self,
commands: CC
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
C: SingleArg,
CC: SingleArgCollection<C>,
RR: KeyValueCollectionResponse<String, CommandHistogram>,
source§fn latency_history<RR>(
self,
event: LatencyHistoryEvent
) -> PreparedCommand<'a, Self, RR>
fn latency_history<RR>( self, event: LatencyHistoryEvent ) -> PreparedCommand<'a, Self, RR>
source§fn latency_latest<RR>(self) -> PreparedCommand<'a, Self, RR>
fn latency_latest<RR>(self) -> PreparedCommand<'a, Self, RR>
source§fn latency_reset<EE>(self, events: EE) -> PreparedCommand<'a, Self, usize>
fn latency_reset<EE>(self, events: EE) -> PreparedCommand<'a, Self, usize>
source§fn lolwut(self, options: LolWutOptions) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn lolwut(self, options: LolWutOptions) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn memory_doctor(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn memory_doctor(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn memory_malloc_stats(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
fn memory_malloc_stats(self) -> PreparedCommand<'a, Self, String>where
Self: Sized,
source§fn memory_purge(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn memory_purge(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn memory_stats(self) -> PreparedCommand<'a, Self, MemoryStats>where
Self: Sized,
fn memory_stats(self) -> PreparedCommand<'a, Self, MemoryStats>where
Self: Sized,
source§fn memory_usage<K>(
self,
key: K,
options: MemoryUsageOptions
) -> PreparedCommand<'a, Self, Option<usize>>
fn memory_usage<K>( self, key: K, options: MemoryUsageOptions ) -> PreparedCommand<'a, Self, Option<usize>>
source§fn module_list<MM>(self) -> PreparedCommand<'a, Self, MM>
fn module_list<MM>(self) -> PreparedCommand<'a, Self, MM>
source§fn module_load<P>(
self,
path: P,
options: ModuleLoadOptions
) -> PreparedCommand<'a, Self, ()>
fn module_load<P>( self, path: P, options: ModuleLoadOptions ) -> PreparedCommand<'a, Self, ()>
source§fn module_unload<N>(self, name: N) -> PreparedCommand<'a, Self, ()>
fn module_unload<N>(self, name: N) -> PreparedCommand<'a, Self, ()>
source§fn replicaof(self, options: ReplicaOfOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn replicaof(self, options: ReplicaOfOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn role(self) -> PreparedCommand<'a, Self, RoleResult>where
Self: Sized,
fn role(self) -> PreparedCommand<'a, Self, RoleResult>where
Self: Sized,
master
, slave
, or sentinel
. Read moresource§fn save(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn save(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn shutdown(self, options: ShutdownOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn shutdown(self, options: ShutdownOptions) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn slowlog_get(
self,
options: SlowLogOptions
) -> PreparedCommand<'a, Self, Vec<SlowLogEntry>>where
Self: Sized,
fn slowlog_get(
self,
options: SlowLogOptions
) -> PreparedCommand<'a, Self, Vec<SlowLogEntry>>where
Self: Sized,
source§fn slowlog_len(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn slowlog_len(self) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn slowlog_reset(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn slowlog_reset(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§impl<'a> SetCommands<'a> for &'a Client
impl<'a> SetCommands<'a> for &'a Client
source§fn sadd<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
fn sadd<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
source§fn scard<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
fn scard<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
source§fn sdiff<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
fn sdiff<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
source§fn sdiffstore<D, K, C>(
self,
destination: D,
keys: C
) -> PreparedCommand<'a, Self, usize>
fn sdiffstore<D, K, C>( self, destination: D, keys: C ) -> PreparedCommand<'a, Self, usize>
source§fn sinter<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
fn sinter<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
source§fn sintercard<K, C>(
self,
keys: C,
limit: usize
) -> PreparedCommand<'a, Self, usize>
fn sintercard<K, C>( self, keys: C, limit: usize ) -> PreparedCommand<'a, Self, usize>
source§fn sinterstore<D, K, C>(
self,
destination: D,
keys: C
) -> PreparedCommand<'a, Self, usize>
fn sinterstore<D, K, C>( self, destination: D, keys: C ) -> PreparedCommand<'a, Self, usize>
source§fn sismember<K, M>(self, key: K, member: M) -> PreparedCommand<'a, Self, bool>
fn sismember<K, M>(self, key: K, member: M) -> PreparedCommand<'a, Self, bool>
source§fn smembers<K, M, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
fn smembers<K, M, A>(self, key: K) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
source§fn smismember<K, M, C>(
self,
key: K,
members: C
) -> PreparedCommand<'a, Self, Vec<bool>>
fn smismember<K, M, C>( self, key: K, members: C ) -> PreparedCommand<'a, Self, Vec<bool>>
source§fn smove<S, D, M>(
self,
source: S,
destination: D,
member: M
) -> PreparedCommand<'a, Self, bool>
fn smove<S, D, M>( self, source: S, destination: D, member: M ) -> PreparedCommand<'a, Self, bool>
source§fn spop<K, M, A>(self, key: K, count: usize) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
fn spop<K, M, A>(self, key: K, count: usize) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
source§fn srandmember<K, M, A>(
self,
key: K,
count: usize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
fn srandmember<K, M, A>(
self,
key: K,
count: usize
) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
A: CollectionResponse<M> + DeserializeOwned,
source§fn srem<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
fn srem<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
source§fn sscan<K, M>(
self,
key: K,
cursor: u64,
options: SScanOptions
) -> PreparedCommand<'a, Self, (u64, Vec<M>)>
fn sscan<K, M>( self, key: K, cursor: u64, options: SScanOptions ) -> PreparedCommand<'a, Self, (u64, Vec<M>)>
source§fn sunion<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
fn sunion<K, M, C, A>(self, keys: C) -> PreparedCommand<'a, Self, A>where
Self: Sized,
K: SingleArg,
M: PrimitiveResponse + Eq + Hash + DeserializeOwned,
C: SingleArgCollection<K>,
A: CollectionResponse<M> + DeserializeOwned,
source§fn sunionstore<D, K, C>(
self,
destination: D,
keys: C
) -> PreparedCommand<'a, Self, usize>
fn sunionstore<D, K, C>( self, destination: D, keys: C ) -> PreparedCommand<'a, Self, usize>
source§impl<'a> SortedSetCommands<'a> for &'a Client
impl<'a> SortedSetCommands<'a> for &'a Client
source§fn zadd<K, M, I>(
self,
key: K,
items: I,
options: ZAddOptions
) -> PreparedCommand<'a, Self, usize>
fn zadd<K, M, I>( self, key: K, items: I, options: ZAddOptions ) -> PreparedCommand<'a, Self, usize>
source§fn zadd_incr<K, M>(
self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> PreparedCommand<'a, Self, Option<f64>>
fn zadd_incr<K, M>( self, key: K, condition: ZAddCondition, comparison: ZAddComparison, change: bool, score: f64, member: M ) -> PreparedCommand<'a, Self, Option<f64>>
source§fn zcard<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
fn zcard<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
source§fn zcount<K, M1, M2>(
self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'a, Self, usize>
fn zcount<K, M1, M2>( self, key: K, min: M1, max: M2 ) -> PreparedCommand<'a, Self, usize>
source§fn zdiff<K, C, E>(self, keys: C) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
fn zdiff<K, C, E>(self, keys: C) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zdiff_with_scores<K, C, E>(
self,
keys: C
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
fn zdiff_with_scores<K, C, E>(
self,
keys: C
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zdiffstore<D, K, C>(
self,
destination: D,
keys: C
) -> PreparedCommand<'a, Self, usize>
fn zdiffstore<D, K, C>( self, destination: D, keys: C ) -> PreparedCommand<'a, Self, usize>
source§fn zincrby<K, M>(
self,
key: K,
increment: f64,
member: M
) -> PreparedCommand<'a, Self, f64>
fn zincrby<K, M>( self, key: K, increment: f64, member: M ) -> PreparedCommand<'a, Self, f64>
source§fn zinter<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
fn zinter<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zinter_with_scores<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
fn zinter_with_scores<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zintercard<K, C>(
self,
keys: C,
limit: usize
) -> PreparedCommand<'a, Self, usize>
fn zintercard<K, C>( self, keys: C, limit: usize ) -> PreparedCommand<'a, Self, usize>
source§fn zinterstore<D, K, C, W>(
self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
fn zinterstore<D, K, C, W>(
self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
source§fn zlexcount<K, M1, M2>(
self,
key: K,
min: M1,
max: M2
) -> PreparedCommand<'a, Self, usize>
fn zlexcount<K, M1, M2>( self, key: K, min: M1, max: M2 ) -> PreparedCommand<'a, Self, usize>
source§fn zmpop<K, C, E>(
self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
fn zmpop<K, C, E>(
self,
keys: C,
where_: ZWhere,
count: usize
) -> PreparedCommand<'a, Self, Option<ZMPopResult<E>>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zmscore<K, M, C>(
self,
key: K,
members: C
) -> PreparedCommand<'a, Self, Vec<Option<f64>>>
fn zmscore<K, M, C>( self, key: K, members: C ) -> PreparedCommand<'a, Self, Vec<Option<f64>>>
source§fn zpopmax<K, M>(
self,
key: K,
count: usize
) -> PreparedCommand<'a, Self, Vec<(M, f64)>>
fn zpopmax<K, M>( self, key: K, count: usize ) -> PreparedCommand<'a, Self, Vec<(M, f64)>>
source§fn zpopmin<K, M>(
self,
key: K,
count: usize
) -> PreparedCommand<'a, Self, Vec<(M, f64)>>
fn zpopmin<K, M>( self, key: K, count: usize ) -> PreparedCommand<'a, Self, Vec<(M, f64)>>
source§fn zrandmember<K, E>(self, key: K) -> PreparedCommand<'a, Self, E>
fn zrandmember<K, E>(self, key: K) -> PreparedCommand<'a, Self, E>
source§fn zrandmembers<K, E>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, Vec<E>>
fn zrandmembers<K, E>( self, key: K, count: isize ) -> PreparedCommand<'a, Self, Vec<E>>
source§fn zrandmembers_with_scores<K, E>(
self,
key: K,
count: isize
) -> PreparedCommand<'a, Self, Vec<E>>
fn zrandmembers_with_scores<K, E>( self, key: K, count: isize ) -> PreparedCommand<'a, Self, Vec<E>>
source§fn zrange<K, S, E>(
self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'a, Self, Vec<E>>
fn zrange<K, S, E>( self, key: K, start: S, stop: S, options: ZRangeOptions ) -> PreparedCommand<'a, Self, Vec<E>>
key
. Read moresource§fn zrange_with_scores<K, S, E>(
self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>
fn zrange_with_scores<K, S, E>( self, key: K, start: S, stop: S, options: ZRangeOptions ) -> PreparedCommand<'a, Self, Vec<(E, f64)>>
key
. Read moresource§fn zrangestore<D, S, SS>(
self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> PreparedCommand<'a, Self, usize>
fn zrangestore<D, S, SS>( self, dst: D, src: S, start: SS, stop: SS, options: ZRangeOptions ) -> PreparedCommand<'a, Self, usize>
source§fn zrank<K, M>(
self,
key: K,
member: M
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrank<K, M>( self, key: K, member: M ) -> PreparedCommand<'a, Self, Option<usize>>
source§fn zrem<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
fn zrem<K, M, C>(self, key: K, members: C) -> PreparedCommand<'a, Self, usize>
source§fn zremrangebylex<K, S>(
self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'a, Self, usize>
fn zremrangebylex<K, S>( self, key: K, start: S, stop: S ) -> PreparedCommand<'a, Self, usize>
source§fn zremrangebyrank<K>(
self,
key: K,
start: isize,
stop: isize
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyrank<K>( self, key: K, start: isize, stop: isize ) -> PreparedCommand<'a, Self, usize>
source§fn zremrangebyscore<K, S>(
self,
key: K,
start: S,
stop: S
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyscore<K, S>( self, key: K, start: S, stop: S ) -> PreparedCommand<'a, Self, usize>
source§fn zrevrank<K, M>(
self,
key: K,
member: M
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrevrank<K, M>( self, key: K, member: M ) -> PreparedCommand<'a, Self, Option<usize>>
source§fn zscan<K, M>(
self,
key: K,
cursor: usize,
options: ZScanOptions
) -> PreparedCommand<'a, Self, ZScanResult<M>>
fn zscan<K, M>( self, key: K, cursor: usize, options: ZScanOptions ) -> PreparedCommand<'a, Self, ZScanResult<M>>
source§fn zscore<K, M>(
self,
key: K,
member: M
) -> PreparedCommand<'a, Self, Option<f64>>
fn zscore<K, M>( self, key: K, member: M ) -> PreparedCommand<'a, Self, Option<f64>>
source§fn zunion<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
fn zunion<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<E>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zunion_with_scores<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
fn zunion_with_scores<K, C, W, E>(
self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, Vec<(E, f64)>>where
Self: Sized,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
E: PrimitiveResponse + DeserializeOwned,
source§fn zunionstore<D, K, C, W>(
self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
fn zunionstore<D, K, C, W>(
self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
D: SingleArg,
K: SingleArg,
C: SingleArgCollection<K>,
W: SingleArgCollection<f64>,
source§impl<'a> StreamCommands<'a> for &'a Client
impl<'a> StreamCommands<'a> for &'a Client
source§fn xack<K, G, I, II>(
self,
key: K,
group: G,
ids: II
) -> PreparedCommand<'a, Self, usize>
fn xack<K, G, I, II>( self, key: K, group: G, ids: II ) -> PreparedCommand<'a, Self, usize>
source§fn xadd<K, I, F, V, FFVV, R>(
self,
key: K,
stream_id: I,
items: FFVV,
options: XAddOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
I: SingleArg,
F: SingleArg,
V: SingleArg,
FFVV: KeyValueArgsCollection<F, V>,
R: PrimitiveResponse,
fn xadd<K, I, F, V, FFVV, R>(
self,
key: K,
stream_id: I,
items: FFVV,
options: XAddOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
I: SingleArg,
F: SingleArg,
V: SingleArg,
FFVV: KeyValueArgsCollection<F, V>,
R: PrimitiveResponse,
source§fn xautoclaim<K, G, C, I, V>(
self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
options: XAutoClaimOptions
) -> PreparedCommand<'a, Self, XAutoClaimResult<V>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
fn xautoclaim<K, G, C, I, V>(
self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
options: XAutoClaimOptions
) -> PreparedCommand<'a, Self, XAutoClaimResult<V>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
source§fn xclaim<K, G, C, I, II, V>(
self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: II,
options: XClaimOptions
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
fn xclaim<K, G, C, I, II, V>(
self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: II,
options: XClaimOptions
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
G: SingleArg,
C: SingleArg,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
source§fn xdel<K, I, II>(self, key: K, ids: II) -> PreparedCommand<'a, Self, usize>
fn xdel<K, I, II>(self, key: K, ids: II) -> PreparedCommand<'a, Self, usize>
source§fn xgroup_create<K, G, I>(
self,
key: K,
groupname: G,
id: I,
options: XGroupCreateOptions
) -> PreparedCommand<'a, Self, bool>
fn xgroup_create<K, G, I>( self, key: K, groupname: G, id: I, options: XGroupCreateOptions ) -> PreparedCommand<'a, Self, bool>
groupname
for the stream stored at key
. Read moresource§fn xgroup_createconsumer<K, G, C>(
self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'a, Self, bool>
fn xgroup_createconsumer<K, G, C>( self, key: K, groupname: G, consumername: C ) -> PreparedCommand<'a, Self, bool>
consumername
in the consumer group groupname`` of the stream that's stored at
key. Read moresource§fn xgroup_delconsumer<K, G, C>(
self,
key: K,
groupname: G,
consumername: C
) -> PreparedCommand<'a, Self, usize>
fn xgroup_delconsumer<K, G, C>( self, key: K, groupname: G, consumername: C ) -> PreparedCommand<'a, Self, usize>
source§fn xgroup_destroy<K, G>(
self,
key: K,
groupname: G
) -> PreparedCommand<'a, Self, bool>
fn xgroup_destroy<K, G>( self, key: K, groupname: G ) -> PreparedCommand<'a, Self, bool>
source§fn xgroup_setid<K, G, I>(
self,
key: K,
groupname: G,
id: I,
entries_read: Option<usize>
) -> PreparedCommand<'a, Self, ()>
fn xgroup_setid<K, G, I>( self, key: K, groupname: G, id: I, entries_read: Option<usize> ) -> PreparedCommand<'a, Self, ()>
source§fn xinfo_consumers<K, G>(
self,
key: K,
groupname: G
) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
fn xinfo_consumers<K, G>( self, key: K, groupname: G ) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
groupname
consumer group of the stream stored at key
. Read moresource§fn xinfo_groups<K>(self, key: K) -> PreparedCommand<'a, Self, Vec<XGroupInfo>>
fn xinfo_groups<K>(self, key: K) -> PreparedCommand<'a, Self, Vec<XGroupInfo>>
groupname
consumer group of the stream stored at key
. Read moresource§fn xinfo_stream<K>(
self,
key: K,
options: XInfoStreamOptions
) -> PreparedCommand<'a, Self, XStreamInfo>
fn xinfo_stream<K>( self, key: K, options: XInfoStreamOptions ) -> PreparedCommand<'a, Self, XStreamInfo>
key
. Read moresource§fn xlen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
fn xlen<K>(self, key: K) -> PreparedCommand<'a, Self, usize>
source§fn xpending<K, G>(
self,
key: K,
group: G
) -> PreparedCommand<'a, Self, XPendingResult>
fn xpending<K, G>( self, key: K, group: G ) -> PreparedCommand<'a, Self, XPendingResult>
source§fn xpending_with_options<K, G>(
self,
key: K,
group: G,
options: XPendingOptions
) -> PreparedCommand<'a, Self, Vec<XPendingMessageResult>>
fn xpending_with_options<K, G>( self, key: K, group: G, options: XPendingOptions ) -> PreparedCommand<'a, Self, Vec<XPendingMessageResult>>
source§fn xrange<K, S, E, V>(
self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
fn xrange<K, S, E, V>(
self,
key: K,
start: S,
end: E,
count: Option<usize>
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
S: SingleArg,
E: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
source§fn xread<K, KK, I, II, V, R>(
self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
R: KeyValueCollectionResponse<String, Vec<StreamEntry<V>>>,
fn xread<K, KK, I, II, V, R>(
self,
options: XReadOptions,
keys: KK,
ids: II
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
R: KeyValueCollectionResponse<String, Vec<StreamEntry<V>>>,
source§fn xreadgroup<G, C, K, KK, I, II, V, R>(
self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
G: SingleArg,
C: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
R: KeyValueCollectionResponse<String, Vec<StreamEntry<V>>>,
fn xreadgroup<G, C, K, KK, I, II, V, R>(
self,
group: G,
consumer: C,
options: XReadGroupOptions,
keys: KK,
ids: II
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
G: SingleArg,
C: SingleArg,
K: SingleArg,
KK: SingleArgCollection<K>,
I: SingleArg,
II: SingleArgCollection<I>,
V: PrimitiveResponse + DeserializeOwned,
R: KeyValueCollectionResponse<String, Vec<StreamEntry<V>>>,
source§fn xrevrange<K, E, S, V>(
self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
S: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
fn xrevrange<K, E, S, V>(
self,
key: K,
end: E,
start: S,
count: Option<usize>
) -> PreparedCommand<'a, Self, Vec<StreamEntry<V>>>where
Self: Sized,
K: SingleArg,
E: SingleArg,
S: SingleArg,
V: PrimitiveResponse + DeserializeOwned,
source§fn xtrim<K>(
self,
key: K,
options: XTrimOptions
) -> PreparedCommand<'a, Self, usize>
fn xtrim<K>( self, key: K, options: XTrimOptions ) -> PreparedCommand<'a, Self, usize>
source§impl<'a> StringCommands<'a> for &'a Client
impl<'a> StringCommands<'a> for &'a Client
source§fn append<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, usize>
fn append<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, usize>
source§fn decr<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn decr<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn decrby<K>(self, key: K, decrement: i64) -> PreparedCommand<'a, Self, i64>
fn decrby<K>(self, key: K, decrement: i64) -> PreparedCommand<'a, Self, i64>
source§fn get<K, V>(self, key: K) -> PreparedCommand<'a, Self, V>
fn get<K, V>(self, key: K) -> PreparedCommand<'a, Self, V>
source§fn getdel<K, V>(self, key: K) -> PreparedCommand<'a, Self, V>
fn getdel<K, V>(self, key: K) -> PreparedCommand<'a, Self, V>
source§fn getex<K, V>(
self,
key: K,
options: GetExOptions
) -> PreparedCommand<'a, Self, V>
fn getex<K, V>( self, key: K, options: GetExOptions ) -> PreparedCommand<'a, Self, V>
source§fn getrange<K, V>(
self,
key: K,
start: usize,
end: isize
) -> PreparedCommand<'a, Self, V>
fn getrange<K, V>( self, key: K, start: usize, end: isize ) -> PreparedCommand<'a, Self, V>
source§fn getset<K, V, R>(self, key: K, value: V) -> PreparedCommand<'a, Self, R>
fn getset<K, V, R>(self, key: K, value: V) -> PreparedCommand<'a, Self, R>
source§fn incr<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
fn incr<K>(self, key: K) -> PreparedCommand<'a, Self, i64>
source§fn incrby<K>(self, key: K, increment: i64) -> PreparedCommand<'a, Self, i64>
fn incrby<K>(self, key: K, increment: i64) -> PreparedCommand<'a, Self, i64>
source§fn incrbyfloat<K>(
self,
key: K,
increment: f64
) -> PreparedCommand<'a, Self, f64>
fn incrbyfloat<K>( self, key: K, increment: f64 ) -> PreparedCommand<'a, Self, f64>
source§fn lcs<K, V>(self, key1: K, key2: K) -> PreparedCommand<'a, Self, V>
fn lcs<K, V>(self, key1: K, key2: K) -> PreparedCommand<'a, Self, V>
source§fn lcs_len<K>(self, key1: K, key2: K) -> PreparedCommand<'a, Self, usize>
fn lcs_len<K>(self, key1: K, key2: K) -> PreparedCommand<'a, Self, usize>
source§fn lcs_idx<K>(
self,
key1: K,
key2: K,
min_match_len: Option<usize>,
with_match_len: bool
) -> PreparedCommand<'a, Self, LcsResult>
fn lcs_idx<K>( self, key1: K, key2: K, min_match_len: Option<usize>, with_match_len: bool ) -> PreparedCommand<'a, Self, LcsResult>
source§fn mget<K, KK, V, VV>(self, keys: KK) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
V: PrimitiveResponse + DeserializeOwned,
VV: CollectionResponse<V>,
fn mget<K, KK, V, VV>(self, keys: KK) -> PreparedCommand<'a, Self, VV>where
Self: Sized,
K: SingleArg,
KK: SingleArgCollection<K>,
V: PrimitiveResponse + DeserializeOwned,
VV: CollectionResponse<V>,
source§fn mset<K, V, C>(self, items: C) -> PreparedCommand<'a, Self, ()>
fn mset<K, V, C>(self, items: C) -> PreparedCommand<'a, Self, ()>
source§fn msetnx<K, V, C>(self, items: C) -> PreparedCommand<'a, Self, bool>
fn msetnx<K, V, C>(self, items: C) -> PreparedCommand<'a, Self, bool>
source§fn psetex<K, V>(
self,
key: K,
milliseconds: u64,
value: V
) -> PreparedCommand<'a, Self, ()>
fn psetex<K, V>( self, key: K, milliseconds: u64, value: V ) -> PreparedCommand<'a, Self, ()>
source§fn set<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, ()>
fn set<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, ()>
source§fn set_with_options<K, V>(
self,
key: K,
value: V,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'a, Self, bool>
fn set_with_options<K, V>( self, key: K, value: V, condition: SetCondition, expiration: SetExpiration, keep_ttl: bool ) -> PreparedCommand<'a, Self, bool>
source§fn set_get_with_options<K, V1, V2>(
self,
key: K,
value: V1,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool
) -> PreparedCommand<'a, Self, V2>
fn set_get_with_options<K, V1, V2>( self, key: K, value: V1, condition: SetCondition, expiration: SetExpiration, keep_ttl: bool ) -> PreparedCommand<'a, Self, V2>
source§fn setex<K, V>(
self,
key: K,
seconds: u64,
value: V
) -> PreparedCommand<'a, Self, ()>
fn setex<K, V>( self, key: K, seconds: u64, value: V ) -> PreparedCommand<'a, Self, ()>
source§fn setnx<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, bool>
fn setnx<K, V>(self, key: K, value: V) -> PreparedCommand<'a, Self, bool>
source§impl<'a> TDigestCommands<'a> for &'a Client
Available on crate feature redis-bloom
only.
impl<'a> TDigestCommands<'a> for &'a Client
redis-bloom
only.source§fn tdigest_add(
self,
key: impl SingleArg,
values: impl SingleArgCollection<f64>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_add(
self,
key: impl SingleArg,
values: impl SingleArgCollection<f64>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn tdigest_byrank<R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_byrank<R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_byrevrank<R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_byrevrank<R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
ranks: impl SingleArgCollection<usize>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_cdf<V: SingleArg, R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_cdf<V: SingleArg, R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_create(
self,
key: impl SingleArg,
compression: Option<i64>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_create(
self,
key: impl SingleArg,
compression: Option<i64>
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn tdigest_info(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, TDigestInfoResult>where
Self: Sized,
fn tdigest_info(
self,
key: impl SingleArg
) -> PreparedCommand<'a, Self, TDigestInfoResult>where
Self: Sized,
source§fn tdigest_max(self, key: impl SingleArg) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_max(self, key: impl SingleArg) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
source§fn tdigest_merge<S: SingleArg>(
self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
options: TDigestMergeOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_merge<S: SingleArg>(
self,
destination: impl SingleArg,
sources: impl SingleArgCollection<S>,
options: TDigestMergeOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn tdigest_min(self, key: impl SingleArg) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_min(self, key: impl SingleArg) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
source§fn tdigest_quantile<Q: SingleArg, R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
quantiles: impl SingleArgCollection<Q>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_quantile<Q: SingleArg, R: CollectionResponse<f64>>(
self,
key: impl SingleArg,
quantiles: impl SingleArgCollection<Q>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_rank<V: SingleArg, R: CollectionResponse<isize>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_rank<V: SingleArg, R: CollectionResponse<isize>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_reset(self, key: impl SingleArg) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_reset(self, key: impl SingleArg) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn tdigest_revrank<V: SingleArg, R: CollectionResponse<isize>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_revrank<V: SingleArg, R: CollectionResponse<isize>>(
self,
key: impl SingleArg,
values: impl SingleArgCollection<V>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn tdigest_trimmed_mean(
self,
key: impl SingleArg,
low_cut_quantile: f64,
high_cut_quantile: f64
) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_trimmed_mean(
self,
key: impl SingleArg,
low_cut_quantile: f64,
high_cut_quantile: f64
) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
source§impl<'a> TimeSeriesCommands<'a> for &'a Client
Available on crate feature redis-time-series
only.
impl<'a> TimeSeriesCommands<'a> for &'a Client
redis-time-series
only.source§fn ts_add(
self,
key: impl SingleArg,
timestamp: impl SingleArg,
value: f64,
options: TsAddOptions
) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
fn ts_add(
self,
key: impl SingleArg,
timestamp: impl SingleArg,
value: f64,
options: TsAddOptions
) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
source§fn ts_alter(
self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ts_alter(
self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ts_create(
self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ts_create(
self,
key: impl SingleArg,
options: TsCreateOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ts_createrule(
self,
src_key: impl SingleArg,
dst_key: impl SingleArg,
aggregator: TsAggregationType,
bucket_duration: u64,
options: TsCreateRuleOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ts_createrule(
self,
src_key: impl SingleArg,
dst_key: impl SingleArg,
aggregator: TsAggregationType,
bucket_duration: u64,
options: TsCreateRuleOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ts_decrby(
self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ts_decrby(
self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ts_del(
self,
key: impl SingleArg,
from_timestamp: u64,
to_timestamp: u64
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
fn ts_del(
self,
key: impl SingleArg,
from_timestamp: u64,
to_timestamp: u64
) -> PreparedCommand<'a, Self, usize>where
Self: Sized,
source§fn ts_deleterule(
self,
src_key: impl SingleArg,
dst_key: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn ts_deleterule(
self,
src_key: impl SingleArg,
dst_key: impl SingleArg
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
source§fn ts_get(
self,
key: impl SingleArg,
options: TsGetOptions
) -> PreparedCommand<'a, Self, Option<(u64, f64)>>where
Self: Sized,
fn ts_get(
self,
key: impl SingleArg,
options: TsGetOptions
) -> PreparedCommand<'a, Self, Option<(u64, f64)>>where
Self: Sized,
source§fn ts_incrby(
self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
fn ts_incrby(
self,
key: impl SingleArg,
value: f64,
options: TsIncrByDecrByOptions
) -> PreparedCommand<'a, Self, u64>where
Self: Sized,
source§fn ts_info(
self,
key: impl SingleArg,
debug: bool
) -> PreparedCommand<'a, Self, TsInfoResult>where
Self: Sized,
fn ts_info(
self,
key: impl SingleArg,
debug: bool
) -> PreparedCommand<'a, Self, TsInfoResult>where
Self: Sized,
source§fn ts_madd<K: SingleArg, T: SingleArg, R: CollectionResponse<u64>>(
self,
items: impl MultipleArgsCollection<(K, T, f64)>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_madd<K: SingleArg, T: SingleArg, R: CollectionResponse<u64>>(
self,
items: impl MultipleArgsCollection<(K, T, f64)>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn ts_mget<F: SingleArg, R: CollectionResponse<TsSample>>(
self,
options: TsMGetOptions,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_mget<F: SingleArg, R: CollectionResponse<TsSample>>(
self,
options: TsMGetOptions,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn ts_mrange<F: SingleArg, R: CollectionResponse<TsRangeSample>>(
self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_mrange<F: SingleArg, R: CollectionResponse<TsRangeSample>>(
self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn ts_mrevrange<F: SingleArg, R: CollectionResponse<TsRangeSample>>(
self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_mrevrange<F: SingleArg, R: CollectionResponse<TsRangeSample>>(
self,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsMRangeOptions,
filters: impl SingleArgCollection<F>,
groupby_options: TsGroupByOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn ts_queryindex<F: SingleArg, R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
fn ts_queryindex<F: SingleArg, R: PrimitiveResponse + DeserializeOwned, RR: CollectionResponse<R>>(
self,
filters: impl SingleArgCollection<F>
) -> PreparedCommand<'a, Self, RR>where
Self: Sized,
source§fn ts_range<R: CollectionResponse<(u64, f64)>>(
self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_range<R: CollectionResponse<(u64, f64)>>(
self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§fn ts_revrange<R: CollectionResponse<(u64, f64)>>(
self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn ts_revrange<R: CollectionResponse<(u64, f64)>>(
self,
key: impl SingleArg,
from_timestamp: impl SingleArg,
to_timestamp: impl SingleArg,
options: TsRangeOptions
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
source§impl<'a> TopKCommands<'a> for &'a Client
Available on crate feature redis-bloom
only.
impl<'a> TopKCommands<'a> for &'a Client
redis-bloom
only.