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<'a>(&'a self) -> RwLockReadGuard<'a, ClientState>
pub fn get_client_state<'a>(&'a self) -> RwLockReadGuard<'a, ClientState>
Give an immutable generic access to attach any state to a client instance
Sourcepub fn get_client_state_mut<'a>(&'a self) -> RwLockWriteGuard<'a, ClientState>
pub fn get_client_state_mut<'a>(&'a self) -> RwLockWriteGuard<'a, 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- genericCommandmeant 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_errorSome(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, commands::{FlushingMode, ServerCommands}, 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.flushall(FlushingMode::Sync).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- genericCommandmeant 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_errorSome(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 genericCommands 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_errorSome(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<'a>(&'a self) -> Pipeline<'a>
pub fn create_pipeline<'a>(&'a self) -> Pipeline<'a>
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<ClientTrackingInvalidationStream>
Trait Implementations§
Source§impl<'a> BitmapCommands<'a> for &'a Client
impl<'a> BitmapCommands<'a> for &'a Client
Source§fn bitcount(
self,
key: impl Args,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
fn bitcount( self, key: impl Args, range: BitRange, ) -> PreparedCommand<'a, Self, usize>
Source§fn bitfield(
self,
key: impl Args,
sub_commands: impl Args,
) -> PreparedCommand<'a, Self, Vec<u64>>
fn bitfield( self, key: impl Args, sub_commands: impl Args, ) -> PreparedCommand<'a, Self, Vec<u64>>
Source§fn bitfield_readonly(
self,
key: impl Args,
get_commands: impl Args,
) -> PreparedCommand<'a, Self, Vec<u64>>
fn bitfield_readonly( self, key: impl Args, get_commands: impl Args, ) -> PreparedCommand<'a, Self, Vec<u64>>
Source§fn bitop(
self,
operation: BitOperation,
dest_key: impl Args,
keys: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn bitop( self, operation: BitOperation, dest_key: impl Args, keys: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn bitpos(
self,
key: impl Args,
bit: u64,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
fn bitpos( self, key: impl Args, 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<R: Response>(
self,
source: impl Args,
destination: impl Args,
where_from: LMoveWhere,
where_to: LMoveWhere,
timeout: f64,
) -> PreparedCommand<'a, Self, R>
fn blmove<R: Response>( self, source: impl Args, destination: impl Args, where_from: LMoveWhere, where_to: LMoveWhere, timeout: f64, ) -> PreparedCommand<'a, Self, R>
Source§fn blmpop<R: Response + DeserializeOwned>(
self,
timeout: f64,
keys: impl Args,
where_: LMoveWhere,
count: usize,
) -> PreparedCommand<'a, Self, Option<(String, R)>>
fn blmpop<R: Response + DeserializeOwned>( self, timeout: f64, keys: impl Args, where_: LMoveWhere, count: usize, ) -> PreparedCommand<'a, Self, Option<(String, R)>>
Source§fn blpop<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>(
self,
keys: impl Args,
timeout: f64,
) -> PreparedCommand<'a, Self, Option<(R1, R2)>>
fn blpop<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>( self, keys: impl Args, timeout: f64, ) -> PreparedCommand<'a, Self, Option<(R1, R2)>>
Source§fn brpop<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>(
self,
keys: impl Args,
timeout: f64,
) -> PreparedCommand<'a, Self, Option<(R1, R2)>>
fn brpop<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>( self, keys: impl Args, timeout: f64, ) -> PreparedCommand<'a, Self, Option<(R1, R2)>>
Source§fn bzmpop<R: Response + DeserializeOwned>(
self,
timeout: f64,
keys: impl Args,
where_: ZWhere,
count: usize,
) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
fn bzmpop<R: Response + DeserializeOwned>( self, timeout: f64, keys: impl Args, where_: ZWhere, count: usize, ) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
Source§fn bzpopmax<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>(
self,
keys: impl Args,
timeout: f64,
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<R1, R2>>
fn bzpopmax<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>( self, keys: impl Args, timeout: f64, ) -> PreparedCommand<'a, Self, BZpopMinMaxResult<R1, R2>>
Source§fn bzpopmin<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>(
self,
keys: impl Args,
timeout: f64,
) -> PreparedCommand<'a, Self, BZpopMinMaxResult<R1, R2>>
fn bzpopmin<R1: Response + DeserializeOwned, R2: Response + DeserializeOwned>( self, keys: impl Args, timeout: f64, ) -> PreparedCommand<'a, Self, BZpopMinMaxResult<R1, R2>>
Source§impl<'a> BloomCommands<'a> for &'a Client
impl<'a> BloomCommands<'a> for &'a Client
Source§fn bf_add(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn bf_add( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn bf_exists(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn bf_exists( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn bf_info_all(self, key: impl Args) -> PreparedCommand<'a, Self, BfInfoResult>
fn bf_info_all(self, key: impl Args) -> PreparedCommand<'a, Self, BfInfoResult>
Source§fn bf_info<R: Response>(
self,
key: impl Args,
param: BfInfoParameter,
) -> PreparedCommand<'a, Self, R>
fn bf_info<R: Response>( self, key: impl Args, param: BfInfoParameter, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_insert<R: Response>(
self,
key: impl Args,
items: impl Args,
options: BfInsertOptions,
) -> PreparedCommand<'a, Self, R>
fn bf_insert<R: Response>( self, key: impl Args, items: impl Args, options: BfInsertOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_loadchunk(
self,
key: impl Args,
iterator: i64,
data: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn bf_loadchunk( self, key: impl Args, iterator: i64, data: impl Args, ) -> PreparedCommand<'a, Self, ()>
bf_scandump. Read moreSource§fn bf_madd<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn bf_madd<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_mexists<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn bf_mexists<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_reserve(
self,
key: impl Args,
error_rate: f64,
capacity: usize,
options: BfReserveOptions,
) -> PreparedCommand<'a, Self, ()>
fn bf_reserve( self, key: impl Args, error_rate: f64, capacity: usize, options: BfReserveOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn bf_scandump(
self,
key: impl Args,
iterator: i64,
) -> PreparedCommand<'a, Self, BfScanDumpResult>
fn bf_scandump( self, key: impl Args, iterator: i64, ) -> PreparedCommand<'a, Self, BfScanDumpResult>
Source§impl<'a> ClusterCommands<'a> for &'a Client
impl<'a> ClusterCommands<'a> for &'a Client
Source§fn asking(self) -> PreparedCommand<'a, Self, ()>
fn asking(self) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_addslots<S>(self, slots: impl Args) -> PreparedCommand<'a, Self, ()>
fn cluster_addslots<S>(self, slots: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_addslotsrange<S>(
self,
slots: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn cluster_addslotsrange<S>( self, slots: impl Args, ) -> 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>
fn cluster_bumpepoch(self) -> PreparedCommand<'a, Self, ClusterBumpEpochResult>
Source§fn cluster_count_failure_reports<I>(
self,
node_id: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn cluster_count_failure_reports<I>( self, node_id: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn cluster_countkeysinslot(
self,
slot: usize,
) -> PreparedCommand<'a, Self, usize>
fn cluster_countkeysinslot( self, slot: usize, ) -> PreparedCommand<'a, Self, usize>
Source§fn cluster_delslots<S>(self, slots: impl Args) -> PreparedCommand<'a, Self, ()>
fn cluster_delslots<S>(self, slots: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_delslotsrange<S>(
self,
slots: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn cluster_delslotsrange<S>( self, slots: impl Args, ) -> 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, ()>
fn cluster_failover( self, option: ClusterFailoverOption, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>
fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_forget<I>(self, node_id: impl Args) -> PreparedCommand<'a, Self, ()>
fn cluster_forget<I>(self, node_id: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_getkeysinslot(
self,
slot: u16,
count: usize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_getkeysinslot( self, slot: u16, count: usize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_info(
self,
slot: u16,
count: usize,
) -> PreparedCommand<'a, Self, ClusterInfo>
fn cluster_info( self, slot: u16, count: usize, ) -> PreparedCommand<'a, Self, ClusterInfo>
Source§fn cluster_keyslot(self, key: impl Args) -> PreparedCommand<'a, Self, u16>
fn cluster_keyslot(self, key: impl Args) -> PreparedCommand<'a, Self, u16>
Source§fn cluster_links<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn cluster_links<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_meet(
self,
ip: impl Args,
port: u16,
cluster_bus_port: Option<u16>,
) -> PreparedCommand<'a, Self, ()>
fn cluster_meet( self, ip: impl Args, port: u16, cluster_bus_port: Option<u16>, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_myid<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn cluster_myid<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_nodes<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn cluster_nodes<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_replicas<R: Response>(
self,
node_id: impl Args,
) -> PreparedCommand<'a, Self, R>
fn cluster_replicas<R: Response>( self, node_id: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn cluster_replicate(self, node_id: impl Args) -> PreparedCommand<'a, Self, ()>
fn cluster_replicate(self, node_id: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_reset(
self,
reset_type: ClusterResetType,
) -> PreparedCommand<'a, Self, ()>
fn cluster_reset( self, reset_type: ClusterResetType, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_saveconfig(self) -> PreparedCommand<'a, Self, ()>
fn cluster_saveconfig(self) -> PreparedCommand<'a, Self, ()>
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, ()>
fn cluster_set_config_epoch( self, config_epoch: u64, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_setslot(
self,
slot: u16,
subcommand: ClusterSetSlotSubCommand,
) -> PreparedCommand<'a, Self, ()>
fn cluster_setslot( self, slot: u16, subcommand: ClusterSetSlotSubCommand, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_shards<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn cluster_shards<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_slots<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn cluster_slots<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§impl<'a> ConnectionCommands<'a> for &'a Client
impl<'a> ConnectionCommands<'a> for &'a Client
Source§fn auth(
self,
username: Option<impl Args>,
password: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn auth( self, username: Option<impl Args>, password: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn client_caching(
self,
mode: ClientCachingMode,
) -> PreparedCommand<'a, Self, Option<()>>
fn client_caching( self, mode: ClientCachingMode, ) -> PreparedCommand<'a, Self, Option<()>>
Source§fn client_getname<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn client_getname<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn client_getredir(self) -> PreparedCommand<'a, Self, i64>
fn client_getredir(self) -> PreparedCommand<'a, Self, i64>
Source§fn client_help<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn client_help<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn client_id(self) -> PreparedCommand<'a, Self, i64>
fn client_id(self) -> PreparedCommand<'a, Self, i64>
Source§fn client_info(self) -> PreparedCommand<'a, Self, ClientInfo>
fn client_info(self) -> PreparedCommand<'a, Self, ClientInfo>
Source§fn client_kill(
self,
options: ClientKillOptions,
) -> PreparedCommand<'a, Self, usize>
fn client_kill( self, options: ClientKillOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn client_list(
self,
options: ClientListOptions,
) -> PreparedCommand<'a, Self, ClientListResult>
fn client_list( self, options: ClientListOptions, ) -> PreparedCommand<'a, Self, ClientListResult>
Source§fn client_no_evict(self, no_evict: bool) -> PreparedCommand<'a, Self, ()>
fn client_no_evict(self, no_evict: bool) -> PreparedCommand<'a, Self, ()>
client eviction mode for the current connection. Read moreSource§fn client_no_touch(self, no_touch: bool) -> PreparedCommand<'a, Self, ()>
fn client_no_touch(self, no_touch: bool) -> PreparedCommand<'a, Self, ()>
Source§fn client_pause(
self,
timeout: u64,
mode: ClientPauseMode,
) -> PreparedCommand<'a, Self, ()>
fn client_pause( self, timeout: u64, mode: ClientPauseMode, ) -> PreparedCommand<'a, Self, ()>
Source§fn client_reply(self, mode: ClientReplyMode) -> PreparedCommand<'a, Self, ()>
fn client_reply(self, mode: ClientReplyMode) -> PreparedCommand<'a, Self, ()>
Source§fn client_setname(
self,
connection_name: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn client_setname( self, connection_name: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn client_setinfo(
self,
attr: ClientInfoAttribute,
info: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn client_setinfo( self, attr: ClientInfoAttribute, info: impl Args, ) -> PreparedCommand<'a, Self, ()>
client_list or client_info. Read moreSource§fn client_tracking(
self,
status: ClientTrackingStatus,
options: ClientTrackingOptions,
) -> PreparedCommand<'a, Self, ()>
fn client_tracking( self, status: ClientTrackingStatus, options: ClientTrackingOptions, ) -> PreparedCommand<'a, Self, ()>
server assisted client side caching. Read moreSource§fn client_trackinginfo(self) -> PreparedCommand<'a, Self, ClientTrackingInfo>
fn client_trackinginfo(self) -> PreparedCommand<'a, Self, ClientTrackingInfo>
server assisted client side caching. Read moreSource§fn client_unblock(
self,
client_id: i64,
mode: ClientUnblockMode,
) -> PreparedCommand<'a, Self, bool>
fn client_unblock( self, client_id: i64, mode: ClientUnblockMode, ) -> PreparedCommand<'a, Self, bool>
BRPOP or XREAD or WAIT. Read moreSource§fn client_unpause(self) -> PreparedCommand<'a, Self, bool>
fn client_unpause(self) -> PreparedCommand<'a, Self, bool>
client_pause. Read moreSource§fn echo<R: Response>(self, message: impl Args) -> PreparedCommand<'a, Self, R>
fn echo<R: Response>(self, message: impl Args) -> PreparedCommand<'a, Self, R>
message. Read moreSource§fn hello(self, options: HelloOptions) -> PreparedCommand<'a, Self, HelloResult>
fn hello(self, options: HelloOptions) -> PreparedCommand<'a, Self, HelloResult>
Source§fn ping<R: Response>(self, options: PingOptions) -> PreparedCommand<'a, Self, R>
fn ping<R: Response>(self, options: PingOptions) -> PreparedCommand<'a, Self, R>
Source§fn quit(self) -> PreparedCommand<'a, Self, ()>
fn quit(self) -> PreparedCommand<'a, Self, ()>
Source§impl<'a> CountMinSketchCommands<'a> for &'a Client
impl<'a> CountMinSketchCommands<'a> for &'a Client
Source§fn cms_incrby<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn cms_incrby<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn cms_info(self, key: impl Args) -> PreparedCommand<'a, Self, CmsInfoResult>
fn cms_info(self, key: impl Args) -> PreparedCommand<'a, Self, CmsInfoResult>
Source§fn cms_initbydim(
self,
key: impl Args,
width: usize,
depth: usize,
) -> PreparedCommand<'a, Self, ()>
fn cms_initbydim( self, key: impl Args, width: usize, depth: usize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cms_initbyprob(
self,
key: impl Args,
error: f64,
probability: f64,
) -> PreparedCommand<'a, Self, ()>
fn cms_initbyprob( self, key: impl Args, error: f64, probability: f64, ) -> PreparedCommand<'a, Self, ()>
Source§impl<'a> CuckooCommands<'a> for &'a Client
impl<'a> CuckooCommands<'a> for &'a Client
Source§fn cf_add(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn cf_add( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn cf_addnx(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn cf_addnx( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn cf_count(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn cf_count( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn cf_del(
self,
key: impl Args,
item: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn cf_del( self, key: impl Args, item: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn cf_info(self, key: impl Args) -> PreparedCommand<'a, Self, CfInfoResult>
fn cf_info(self, key: impl Args) -> PreparedCommand<'a, Self, CfInfoResult>
key Read moreSource§fn cf_insert(
self,
key: impl Args,
options: CfInsertOptions,
item: impl Args,
) -> PreparedCommand<'a, Self, Vec<bool>>
fn cf_insert( self, key: impl Args, options: CfInsertOptions, item: impl Args, ) -> PreparedCommand<'a, Self, Vec<bool>>
Source§fn cf_insertnx<R: Response>(
self,
key: impl Args,
options: CfInsertOptions,
item: impl Args,
) -> PreparedCommand<'a, Self, R>
fn cf_insertnx<R: Response>( self, key: impl Args, options: CfInsertOptions, item: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn cf_loadchunk(
self,
key: impl Args,
iterator: i64,
data: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn cf_loadchunk( self, key: impl Args, iterator: i64, data: impl Args, ) -> PreparedCommand<'a, Self, ()>
cf_scandump. Read moreSource§fn cf_mexists<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn cf_mexists<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn cf_reserve(
self,
key: impl Args,
capacity: usize,
options: CfReserveOptions,
) -> PreparedCommand<'a, Self, ()>
fn cf_reserve( self, key: impl Args, capacity: usize, options: CfReserveOptions, ) -> PreparedCommand<'a, Self, ()>
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 Args,
iterator: i64,
) -> PreparedCommand<'a, Self, CfScanDumpResult>
fn cf_scandump( self, key: impl Args, iterator: i64, ) -> PreparedCommand<'a, Self, CfScanDumpResult>
Source§impl<'a> GenericCommands<'a> for &'a Client
impl<'a> GenericCommands<'a> for &'a Client
Source§fn copy(
self,
source: impl Args,
destination: impl Args,
destination_db: Option<usize>,
replace: bool,
) -> PreparedCommand<'a, Self, bool>
fn copy( self, source: impl Args, destination: impl Args, destination_db: Option<usize>, replace: bool, ) -> PreparedCommand<'a, Self, bool>
Source§fn del(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
fn del(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn dump(self, key: impl Args) -> PreparedCommand<'a, Self, DumpResult>
fn dump(self, key: impl Args) -> PreparedCommand<'a, Self, DumpResult>
Source§fn exists(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
fn exists(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn expire(
self,
key: impl Args,
seconds: u64,
option: ExpireOption,
) -> PreparedCommand<'a, Self, bool>
fn expire( self, key: impl Args, seconds: u64, option: ExpireOption, ) -> PreparedCommand<'a, Self, bool>
Source§fn expireat(
self,
key: impl Args,
unix_time_seconds: u64,
option: ExpireOption,
) -> PreparedCommand<'a, Self, bool>
fn expireat( self, key: impl Args, unix_time_seconds: u64, option: ExpireOption, ) -> PreparedCommand<'a, Self, bool>
Source§fn expiretime(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn expiretime(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn keys<R: Response>(self, pattern: impl Args) -> PreparedCommand<'a, Self, R>
fn keys<R: Response>(self, pattern: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn migrate(
self,
host: impl Args,
port: u16,
key: impl Args,
destination_db: usize,
timeout: u64,
options: MigrateOptions,
) -> PreparedCommand<'a, Self, MigrateResult>
fn migrate( self, host: impl Args, port: u16, key: impl Args, destination_db: usize, timeout: u64, options: MigrateOptions, ) -> PreparedCommand<'a, Self, MigrateResult>
Source§fn move_(self, key: impl Args, db: usize) -> PreparedCommand<'a, Self, i64>
fn move_(self, key: impl Args, db: usize) -> PreparedCommand<'a, Self, i64>
Source§fn object_encoding<R: Response>(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, R>
fn object_encoding<R: Response>( self, key: impl Args, ) -> PreparedCommand<'a, Self, R>
key Read moreSource§fn object_freq(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn object_freq(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn object_help<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn object_help<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn object_idle_time(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn object_idle_time(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn object_refcount(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn object_refcount(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn persist(self, key: impl Args) -> PreparedCommand<'a, Self, bool>
fn persist(self, key: impl Args) -> PreparedCommand<'a, Self, bool>
Source§fn pexpire(
self,
key: impl Args,
milliseconds: u64,
option: ExpireOption,
) -> PreparedCommand<'a, Self, bool>
fn pexpire( self, key: impl Args, milliseconds: u64, option: ExpireOption, ) -> PreparedCommand<'a, Self, bool>
Source§fn pexpireat(
self,
key: impl Args,
unix_time_milliseconds: u64,
option: ExpireOption,
) -> PreparedCommand<'a, Self, bool>
fn pexpireat( self, key: impl Args, unix_time_milliseconds: u64, option: ExpireOption, ) -> PreparedCommand<'a, Self, bool>
Source§fn pexpiretime(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn pexpiretime(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn pttl(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn pttl(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn randomkey<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn randomkey<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn rename(
self,
key: impl Args,
new_key: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn rename( self, key: impl Args, new_key: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn renamenx(
self,
key: impl Args,
new_key: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn renamenx( self, key: impl Args, new_key: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn restore(
self,
key: impl Args,
ttl: u64,
serialized_value: Vec<u8>,
options: RestoreOptions,
) -> PreparedCommand<'a, Self, ()>
fn restore( self, key: impl Args, ttl: u64, serialized_value: Vec<u8>, options: RestoreOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn scan<R: Response>(
self,
cursor: u64,
options: ScanOptions,
) -> PreparedCommand<'a, Self, R>
fn scan<R: Response>( self, cursor: u64, options: ScanOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn sort<R: Response>(
self,
key: impl Args,
options: SortOptions,
) -> PreparedCommand<'a, Self, R>
fn sort<R: Response>( self, key: impl Args, options: SortOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn sort_and_store(
self,
key: impl Args,
destination: impl Args,
options: SortOptions,
) -> PreparedCommand<'a, Self, usize>
fn sort_and_store( self, key: impl Args, destination: impl Args, options: SortOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn sort_readonly<R: Response>(
self,
key: impl Args,
options: SortOptions,
) -> PreparedCommand<'a, Self, R>
fn sort_readonly<R: Response>( self, key: impl Args, options: SortOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn touch(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
fn touch(self, keys: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn ttl(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn ttl(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn type_(self, key: impl Args) -> PreparedCommand<'a, Self, String>
fn type_(self, key: impl Args) -> PreparedCommand<'a, Self, String>
Source§impl<'a> GeoCommands<'a> for &'a Client
impl<'a> GeoCommands<'a> for &'a Client
Source§fn geoadd(
self,
key: impl Args,
condition: GeoAddCondition,
change: bool,
items: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn geoadd( self, key: impl Args, condition: GeoAddCondition, change: bool, items: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn geodist(
self,
key: impl Args,
member1: impl Args,
member2: impl Args,
unit: GeoUnit,
) -> PreparedCommand<'a, Self, Option<f64>>
fn geodist( self, key: impl Args, member1: impl Args, member2: impl Args, unit: GeoUnit, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn geohash<R: Response>(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, R>
fn geohash<R: Response>( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn geopos(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
fn geopos( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
Source§fn geosearch<F: Args, R: Response>(
self,
key: impl Args,
from: GeoSearchFrom<F>,
by: GeoSearchBy,
options: GeoSearchOptions,
) -> PreparedCommand<'a, Self, R>
fn geosearch<F: Args, R: Response>( self, key: impl Args, from: GeoSearchFrom<F>, by: GeoSearchBy, options: GeoSearchOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn geosearchstore<F: Args>(
self,
destination: impl Args,
source: impl Args,
from: GeoSearchFrom<F>,
by: GeoSearchBy,
options: GeoSearchStoreOptions,
) -> PreparedCommand<'a, Self, usize>
fn geosearchstore<F: Args>( self, destination: impl Args, source: impl Args, from: GeoSearchFrom<F>, by: GeoSearchBy, options: GeoSearchStoreOptions, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> HashCommands<'a> for &'a Client
impl<'a> HashCommands<'a> for &'a Client
Source§fn hdel(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn hdel( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn hexists(
self,
key: impl Args,
field: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn hexists( self, key: impl Args, field: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn hexpire<R: Response>(
self,
key: impl Args,
seconds: u64,
option: ExpireOption,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hexpire<R: Response>( self, key: impl Args, seconds: u64, option: ExpireOption, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hexpireat<R: Response>(
self,
key: impl Args,
unix_time_seconds: u64,
option: ExpireOption,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hexpireat<R: Response>( self, key: impl Args, unix_time_seconds: u64, option: ExpireOption, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hexpiretime<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hexpiretime<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hget<R: Response>(
self,
key: impl Args,
field: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hget<R: Response>( self, key: impl Args, field: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hgetall<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn hgetall<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn hgetdel<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hgetdel<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hgetex<R: Response>(
self,
key: impl Args,
options: GetExOptions,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hgetex<R: Response>( self, key: impl Args, options: GetExOptions, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hincrby(
self,
key: impl Args,
field: impl Args,
increment: i64,
) -> PreparedCommand<'a, Self, i64>
fn hincrby( self, key: impl Args, field: impl Args, increment: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn hincrbyfloat(
self,
key: impl Args,
field: impl Args,
increment: f64,
) -> PreparedCommand<'a, Self, f64>
fn hincrbyfloat( self, key: impl Args, field: impl Args, increment: f64, ) -> PreparedCommand<'a, Self, f64>
Source§fn hkeys<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn hkeys<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn hlen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn hlen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn hmget<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hmget<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hpersist<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hpersist<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpire<R: Response>(
self,
key: impl Args,
milliseconds: u64,
option: ExpireOption,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hpexpire<R: Response>( self, key: impl Args, milliseconds: u64, option: ExpireOption, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpireat<R: Response>(
self,
key: impl Args,
unix_time_milliseconds: u64,
option: ExpireOption,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hpexpireat<R: Response>( self, key: impl Args, unix_time_milliseconds: u64, option: ExpireOption, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpiretime<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hpexpiretime<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
hexpiretime,
but returns the absolute Unix expiration timestamp
in milliseconds since Unix epoch instead of seconds. Read moreSource§fn hpttl<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn hpttl<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn hrandfield<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn hrandfield<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn hrandfields<R: Response>(
self,
key: impl Args,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn hrandfields<R: Response>( self, key: impl Args, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn hrandfields_with_values<R: Response>(
self,
key: impl Args,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn hrandfields_with_values<R: Response>( self, key: impl Args, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn hscan<F: Response + DeserializeOwned, V: Response + DeserializeOwned>(
self,
key: impl Args,
cursor: u64,
options: HScanOptions,
) -> PreparedCommand<'a, Self, HScanResult<F, V>>
fn hscan<F: Response + DeserializeOwned, V: Response + DeserializeOwned>( self, key: impl Args, cursor: u64, options: HScanOptions, ) -> PreparedCommand<'a, Self, HScanResult<F, V>>
Source§fn hset(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn hset( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn hsetex(
self,
key: impl Args,
condition: HSetExCondition,
expiration: SetExpiration,
keep_ttl: bool,
items: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn hsetex( self, key: impl Args, condition: HSetExCondition, expiration: SetExpiration, keep_ttl: bool, items: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn hsetnx(
self,
key: impl Args,
field: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn hsetnx( self, key: impl Args, field: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn hstrlen(
self,
key: impl Args,
field: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn hstrlen( self, key: impl Args, field: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn httl<R: Response>(
self,
key: impl Args,
fields: impl Args,
) -> PreparedCommand<'a, Self, R>
fn httl<R: Response>( self, key: impl Args, fields: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> HyperLogLogCommands<'a> for &'a Client
impl<'a> HyperLogLogCommands<'a> for &'a Client
Source§fn pfadd(
self,
key: impl Args,
elements: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn pfadd( self, key: impl Args, elements: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§impl<'a> JsonCommands<'a> for &'a Client
impl<'a> JsonCommands<'a> for &'a Client
Source§fn json_arrappend<R: Response>(
self,
key: impl Args,
path: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_arrappend<R: Response>( self, key: impl Args, path: impl Args, values: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrindex<R: Response>(
self,
key: impl Args,
path: impl Args,
value: impl Args,
options: JsonArrIndexOptions,
) -> PreparedCommand<'a, Self, R>
fn json_arrindex<R: Response>( self, key: impl Args, path: impl Args, value: impl Args, options: JsonArrIndexOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrinsert<R: Response>(
self,
key: impl Args,
path: impl Args,
index: isize,
values: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_arrinsert<R: Response>( self, key: impl Args, path: impl Args, index: isize, values: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrlen<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_arrlen<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrpop<R: Response>(
self,
key: impl Args,
path: impl Args,
index: isize,
) -> PreparedCommand<'a, Self, R>
fn json_arrpop<R: Response>( self, key: impl Args, path: impl Args, index: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrtrim<R: Response>(
self,
key: impl Args,
path: impl Args,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, R>
fn json_arrtrim<R: Response>( self, key: impl Args, path: impl Args, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_clear(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn json_clear( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_debug_memory<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_debug_memory<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_del(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn json_del( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_forget(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn json_forget( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_get<R: Response>(
self,
key: impl Args,
options: JsonGetOptions,
) -> PreparedCommand<'a, Self, R>
fn json_get<R: Response>( self, key: impl Args, options: JsonGetOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn json_mget<R: Response>(
self,
keys: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_mget<R: Response>( self, keys: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_numincrby<R: Response>(
self,
key: impl Args,
path: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_numincrby<R: Response>( self, key: impl Args, path: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_nummultby<R: Response>(
self,
key: impl Args,
path: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_nummultby<R: Response>( self, key: impl Args, path: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_objkeys<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_objkeys<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
path Read moreSource§fn json_objlen<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_objlen<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_resp<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_resp<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Redis serialization protocol specification form Read moreSource§fn json_set(
self,
key: impl Args,
path: impl Args,
value: impl Args,
condition: SetCondition,
) -> PreparedCommand<'a, Self, ()>
fn json_set( self, key: impl Args, path: impl Args, value: impl Args, condition: SetCondition, ) -> PreparedCommand<'a, Self, ()>
Source§fn json_strappend<R: Response>(
self,
key: impl Args,
path: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_strappend<R: Response>( self, key: impl Args, path: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_strlen<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_strlen<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn json_toggle<R: Response>(
self,
key: impl Args,
path: impl Args,
) -> PreparedCommand<'a, Self, R>
fn json_toggle<R: Response>( self, key: impl Args, path: impl Args, ) -> PreparedCommand<'a, Self, R>
path Read moreSource§impl<'a> ListCommands<'a> for &'a Client
impl<'a> ListCommands<'a> for &'a Client
Source§fn lindex<R: Response>(
self,
key: impl Args,
index: isize,
) -> PreparedCommand<'a, Self, R>
fn lindex<R: Response>( self, key: impl Args, index: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn linsert(
self,
key: impl Args,
where_: LInsertWhere,
pivot: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn linsert( self, key: impl Args, where_: LInsertWhere, pivot: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn llen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn llen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn lmove<R: Response>(
self,
source: impl Args,
destination: impl Args,
where_from: LMoveWhere,
where_to: LMoveWhere,
) -> PreparedCommand<'a, Self, R>
fn lmove<R: Response>( self, source: impl Args, destination: impl Args, where_from: LMoveWhere, where_to: LMoveWhere, ) -> PreparedCommand<'a, Self, R>
Source§fn lmpop<R: Response + DeserializeOwned>(
self,
keys: impl Args,
where_: LMoveWhere,
count: usize,
) -> PreparedCommand<'a, Self, (String, Vec<R>)>
fn lmpop<R: Response + DeserializeOwned>( self, keys: impl Args, where_: LMoveWhere, count: usize, ) -> PreparedCommand<'a, Self, (String, Vec<R>)>
Source§fn lpop<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn lpop<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn lpos(
self,
key: impl Args,
element: impl Args,
rank: Option<usize>,
max_len: Option<usize>,
) -> PreparedCommand<'a, Self, Option<usize>>
fn lpos( self, key: impl Args, element: impl Args, rank: Option<usize>, max_len: Option<usize>, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn lpos_with_count<R: Response>(
self,
key: impl Args,
element: impl Args,
num_matches: usize,
rank: Option<usize>,
max_len: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn lpos_with_count<R: Response>( self, key: impl Args, element: impl Args, num_matches: usize, rank: Option<usize>, max_len: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn lpush(
self,
key: impl Args,
elements: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn lpush( self, key: impl Args, elements: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn lpushx(
self,
key: impl Args,
elements: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn lpushx( self, key: impl Args, elements: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn lrange<R: Response>(
self,
key: impl Args,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, R>
fn lrange<R: Response>( self, key: impl Args, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn lrem(
self,
key: impl Args,
count: isize,
element: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn lrem( self, key: impl Args, count: isize, element: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn lset(
self,
key: impl Args,
index: isize,
element: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn lset( self, key: impl Args, index: isize, element: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ltrim(
self,
key: impl Args,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, ()>
fn ltrim( self, key: impl Args, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, ()>
Source§fn rpop<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn rpop<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> PubSubCommands<'a> for &'a Client
impl<'a> PubSubCommands<'a> for &'a Client
Source§async fn subscribe(self, channels: impl Args) -> Result<PubSubStream>
async fn subscribe(self, channels: impl Args) -> Result<PubSubStream>
Source§async fn psubscribe(self, patterns: impl Args) -> Result<PubSubStream>
async fn psubscribe(self, patterns: impl Args) -> Result<PubSubStream>
Source§async fn ssubscribe(self, shardchannels: impl Args) -> Result<PubSubStream>
async fn ssubscribe(self, shardchannels: impl Args) -> Result<PubSubStream>
Source§fn publish(
self,
channel: impl Args,
message: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn publish( self, channel: impl Args, message: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn pub_sub_channels<R: Response>(
self,
options: PubSubChannelsOptions,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_channels<R: Response>( self, options: PubSubChannelsOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn pub_sub_help(self) -> PreparedCommand<'a, Self, Vec<String>>
fn pub_sub_help(self) -> PreparedCommand<'a, Self, Vec<String>>
Source§fn pub_sub_numpat(self) -> PreparedCommand<'a, Self, usize>
fn pub_sub_numpat(self) -> PreparedCommand<'a, Self, usize>
Source§fn pub_sub_numsub<R: Response>(
self,
channels: impl Args,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_numsub<R: Response>( self, channels: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn pub_sub_shardchannels<R: Response>(
self,
options: PubSubChannelsOptions,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_shardchannels<R: Response>( self, options: PubSubChannelsOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn pub_sub_shardnumsub<R: Response>(
self,
channels: impl Args,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_shardnumsub<R: Response>( self, channels: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> ScriptingCommands<'a> for &'a Client
impl<'a> ScriptingCommands<'a> for &'a Client
Source§fn eval<R: Response>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
fn eval<R: Response>(self, builder: CallBuilder) -> PreparedCommand<'a, Self, R>
Source§fn eval_readonly<R: Response>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn eval_readonly<R: Response>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Source§fn evalsha<R: Response>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn evalsha<R: Response>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Source§fn evalsha_readonly<R: Response>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn evalsha_readonly<R: Response>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Source§fn fcall<R: Response>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn fcall<R: Response>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Source§fn fcall_readonly<R: Response>(
self,
builder: CallBuilder,
) -> PreparedCommand<'a, Self, R>
fn fcall_readonly<R: Response>( self, builder: CallBuilder, ) -> PreparedCommand<'a, Self, R>
Source§fn function_delete(
self,
library_name: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn function_delete( self, library_name: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>
fn function_dump(self) -> PreparedCommand<'a, Self, FunctionDumpResult>
function_restore command. Read moreSource§fn function_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>
fn function_flush( self, flushing_mode: FlushingMode, ) -> PreparedCommand<'a, Self, ()>
Source§fn function_help(self) -> PreparedCommand<'a, Self, Vec<String>>
fn function_help(self) -> PreparedCommand<'a, Self, Vec<String>>
Source§fn function_kill(self) -> PreparedCommand<'a, Self, ()>
fn function_kill(self) -> PreparedCommand<'a, Self, ()>
Source§fn function_list(
self,
options: FunctionListOptions,
) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>
fn function_list( self, options: FunctionListOptions, ) -> PreparedCommand<'a, Self, Vec<LibraryInfo>>
Source§fn function_load<R: Response>(
self,
replace: bool,
function_code: impl Args,
) -> PreparedCommand<'a, Self, R>
fn function_load<R: Response>( self, replace: bool, function_code: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn function_restore(
self,
serialized_payload: impl Args,
policy: FunctionRestorePolicy,
) -> PreparedCommand<'a, Self, ()>
fn function_restore( self, serialized_payload: impl Args, policy: FunctionRestorePolicy, ) -> PreparedCommand<'a, Self, ()>
Source§fn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>
fn function_stats(self) -> PreparedCommand<'a, Self, FunctionStats>
Source§fn script_debug(
self,
debug_mode: ScriptDebugMode,
) -> PreparedCommand<'a, Self, ()>
fn script_debug( self, debug_mode: ScriptDebugMode, ) -> PreparedCommand<'a, Self, ()>
Source§fn script_exists(self, sha1s: impl Args) -> PreparedCommand<'a, Self, Vec<bool>>
fn script_exists(self, sha1s: impl Args) -> PreparedCommand<'a, Self, Vec<bool>>
Source§fn script_flush(
self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'a, Self, ()>
fn script_flush( self, flushing_mode: FlushingMode, ) -> PreparedCommand<'a, Self, ()>
Source§fn script_kill(self) -> PreparedCommand<'a, Self, ()>
fn script_kill(self) -> PreparedCommand<'a, Self, ()>
Source§fn script_load<R: Response>(
self,
script: impl Args,
) -> PreparedCommand<'a, Self, R>
fn script_load<R: Response>( self, script: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> SearchCommands<'a> for &'a Client
impl<'a> SearchCommands<'a> for &'a Client
Source§fn ft_aggregate(
self,
index: impl Args,
query: impl Args,
options: FtAggregateOptions,
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_aggregate( self, index: impl Args, query: impl Args, options: FtAggregateOptions, ) -> PreparedCommand<'a, Self, FtAggregateResult>
Source§fn ft_aliasadd(
self,
alias: impl Args,
index: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ft_aliasadd( self, alias: impl Args, index: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_aliasdel(self, alias: impl Args) -> PreparedCommand<'a, Self, ()>
fn ft_aliasdel(self, alias: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn ft_aliasupdate(
self,
alias: impl Args,
index: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ft_aliasupdate( self, alias: impl Args, index: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_alter(
self,
index: impl Args,
skip_initial_scan: bool,
attribute: FtFieldSchema,
) -> PreparedCommand<'a, Self, ()>
fn ft_alter( self, index: impl Args, skip_initial_scan: bool, attribute: FtFieldSchema, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_config_get<R: Response>(
self,
option: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ft_config_get<R: Response>( self, option: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_config_set(
self,
option: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ft_config_set( self, option: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_create(
self,
index: impl Args,
options: FtCreateOptions,
schema: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ft_create( self, index: impl Args, options: FtCreateOptions, schema: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_cursor_del(
self,
index: impl Args,
cursor_id: u64,
) -> PreparedCommand<'a, Self, ()>
fn ft_cursor_del( self, index: impl Args, cursor_id: u64, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_cursor_read(
self,
index: impl Args,
cursor_id: u64,
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_cursor_read( self, index: impl Args, cursor_id: u64, ) -> PreparedCommand<'a, Self, FtAggregateResult>
Source§fn ft_dictadd(
self,
dict: impl Args,
terms: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn ft_dictadd( self, dict: impl Args, terms: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_dictdel(
self,
dict: impl Args,
terms: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn ft_dictdel( self, dict: impl Args, terms: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_dictdump<R: Response>(
self,
dict: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ft_dictdump<R: Response>( self, dict: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_dropindex(
self,
index: impl Args,
dd: bool,
) -> PreparedCommand<'a, Self, ()>
fn ft_dropindex( self, index: impl Args, dd: bool, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_explain<R: Response>(
self,
index: impl Args,
query: impl Args,
dialect_version: Option<u64>,
) -> PreparedCommand<'a, Self, R>
fn ft_explain<R: Response>( self, index: impl Args, query: impl Args, dialect_version: Option<u64>, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_explaincli(
self,
index: impl Args,
query: impl Args,
dialect_version: Option<u64>,
) -> PreparedCommand<'a, Self, Value>
fn ft_explaincli( self, index: impl Args, query: impl Args, dialect_version: Option<u64>, ) -> PreparedCommand<'a, Self, Value>
redis-cli --raw Read moreSource§fn ft_info(self, index: impl Args) -> PreparedCommand<'a, Self, FtInfoResult>
fn ft_info(self, index: impl Args) -> PreparedCommand<'a, Self, FtInfoResult>
Source§fn ft_list<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn ft_list<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn ft_profile_search<I>(
self,
index: impl Args,
limited: bool,
query: impl Args,
) -> PreparedCommand<'a, Self, Value>
fn ft_profile_search<I>( self, index: impl Args, limited: bool, query: impl Args, ) -> PreparedCommand<'a, Self, Value>
Source§fn ft_profile_aggregate(
self,
index: impl Args,
limited: bool,
query: impl Args,
) -> PreparedCommand<'a, Self, Value>
fn ft_profile_aggregate( self, index: impl Args, limited: bool, query: impl Args, ) -> PreparedCommand<'a, Self, Value>
ft_aggregate command and collects performance information Read moreSource§fn ft_search(
self,
index: impl Args,
query: impl Args,
options: FtSearchOptions,
) -> PreparedCommand<'a, Self, FtSearchResult>
fn ft_search( self, index: impl Args, query: impl Args, options: FtSearchOptions, ) -> PreparedCommand<'a, Self, FtSearchResult>
Source§fn ft_spellcheck(
self,
index: impl Args,
query: impl Args,
options: FtSpellCheckOptions,
) -> PreparedCommand<'a, Self, FtSpellCheckResult>
fn ft_spellcheck( self, index: impl Args, query: impl Args, options: FtSpellCheckOptions, ) -> PreparedCommand<'a, Self, FtSpellCheckResult>
Source§fn ft_syndump<R: Response>(
self,
index: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ft_syndump<R: Response>( self, index: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_synupdate(
self,
index: impl Args,
synonym_group_id: impl Args,
skip_initial_scan: bool,
terms: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ft_synupdate( self, index: impl Args, synonym_group_id: impl Args, skip_initial_scan: bool, terms: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_tagvals<R: Response>(
self,
index: impl Args,
field_name: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ft_tagvals<R: Response>( self, index: impl Args, field_name: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_sugadd(
self,
key: impl Args,
string: impl Args,
score: f64,
options: FtSugAddOptions,
) -> PreparedCommand<'a, Self, usize>
fn ft_sugadd( self, key: impl Args, string: impl Args, score: f64, options: FtSugAddOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_sugdel(
self,
key: impl Args,
string: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn ft_sugdel( self, key: impl Args, string: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn ft_sugget(
self,
key: impl Args,
prefix: impl Args,
options: FtSugGetOptions,
) -> PreparedCommand<'a, Self, Vec<FtSuggestion>>
fn ft_sugget( self, key: impl Args, prefix: impl Args, options: FtSugGetOptions, ) -> PreparedCommand<'a, Self, Vec<FtSuggestion>>
Source§impl<'a> SentinelCommands<'a> for &'a Client
impl<'a> SentinelCommands<'a> for &'a Client
Source§fn sentinel_config_get<R: Response>(
self,
name: impl Args,
) -> PreparedCommand<'a, Self, R>
fn sentinel_config_get<R: Response>( self, name: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn sentinel_config_set(
self,
name: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_config_set( self, name: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_ckquorum(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_ckquorum( self, master_name: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_failover<N>(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_failover<N>( self, master_name: impl Args, ) -> 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(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, Option<(String, u16)>>
fn sentinel_get_master_addr_by_name( self, master_name: impl Args, ) -> PreparedCommand<'a, Self, Option<(String, u16)>>
Source§fn sentinel_info_cache<R: Response>(
self,
master_names: impl Args,
) -> PreparedCommand<'a, Self, R>
fn sentinel_info_cache<R: Response>( self, master_names: impl Args, ) -> PreparedCommand<'a, Self, R>
info output from masters and replicas.Source§fn sentinel_master(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, SentinelMasterInfo>
fn sentinel_master( self, master_name: impl Args, ) -> 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(
self,
name: impl Args,
ip: impl Args,
port: u16,
quorum: usize,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_monitor( self, name: impl Args, ip: impl Args, port: u16, quorum: usize, ) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_remove(self, name: impl Args) -> PreparedCommand<'a, Self, ()>
fn sentinel_remove(self, name: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_set(
self,
name: impl Args,
configs: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_set( self, name: impl Args, configs: impl Args, ) -> 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>
fn sentinel_myid(self) -> PreparedCommand<'a, Self, String>
Source§fn sentinel_pending_scripts(self) -> PreparedCommand<'a, Self, Vec<Value>>
fn sentinel_pending_scripts(self) -> PreparedCommand<'a, Self, Vec<Value>>
Source§fn sentinel_replicas(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
fn sentinel_replicas( self, master_name: impl Args, ) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
Source§fn sentinel_reset(self, pattern: impl Args) -> PreparedCommand<'a, Self, usize>
fn sentinel_reset(self, pattern: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn sentinel_sentinels(
self,
master_name: impl Args,
) -> PreparedCommand<'a, Self, Vec<SentinelInfo>>
fn sentinel_sentinels( self, master_name: impl Args, ) -> 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<R: Response>(
self,
options: AclCatOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_cat<R: Response>( self, options: AclCatOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_deluser(self, usernames: impl Args) -> PreparedCommand<'a, Self, usize>
fn acl_deluser(self, usernames: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn acl_dryrun<R: Response>(
self,
username: impl Args,
command: impl Args,
options: AclDryRunOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_dryrun<R: Response>( self, username: impl Args, command: impl Args, options: AclDryRunOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_genpass<R: Response>(
self,
options: AclGenPassOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_genpass<R: Response>( self, options: AclGenPassOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_getuser<R: Response>(
self,
username: impl Args,
) -> PreparedCommand<'a, Self, R>
fn acl_getuser<R: Response>( self, username: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn acl_list<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_list<R: Response>(self) -> PreparedCommand<'a, Self, R>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<R: Response>(
self,
options: AclLogOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_log<R: Response>( self, options: AclLogOptions, ) -> PreparedCommand<'a, Self, R>
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(
self,
username: impl Args,
rules: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn acl_setuser( self, username: impl Args, rules: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn acl_users<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn acl_users<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn acl_whoami<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_whoami<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn bgrewriteaof<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn bgrewriteaof<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn bgsave<R: Response>(
self,
options: BgsaveOptions,
) -> PreparedCommand<'a, Self, R>
fn bgsave<R: Response>( self, options: BgsaveOptions, ) -> PreparedCommand<'a, Self, R>
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<R: Response>(
self,
command_names: impl Args,
) -> PreparedCommand<'a, Self, R>
fn command_docs<R: Response>( self, command_names: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn command_getkeys<R: Response>(
self,
args: impl Args,
) -> PreparedCommand<'a, Self, R>
fn command_getkeys<R: Response>( self, args: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn command_getkeysandflags<R: Response>(
self,
args: impl Args,
) -> PreparedCommand<'a, Self, R>
fn command_getkeysandflags<R: Response>( self, args: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn command_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn command_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn command_info(
self,
command_names: impl Args,
) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
fn command_info( self, command_names: impl Args, ) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
Source§fn command_list<R: Response>(
self,
options: CommandListOptions,
) -> PreparedCommand<'a, Self, R>
fn command_list<R: Response>( self, options: CommandListOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn config_get<R: Response>(
self,
params: impl Args,
) -> PreparedCommand<'a, Self, R>
fn config_get<R: Response>( self, params: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn config_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn config_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
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(self, configs: impl Args) -> PreparedCommand<'a, Self, ()>
fn config_set(self, configs: impl Args) -> 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<R: Response>(self, sections: impl Args) -> PreparedCommand<'a, Self, R>
fn info<R: Response>(self, sections: impl Args) -> PreparedCommand<'a, Self, R>
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<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_doctor<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_graph<R: Response>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_graph<R: Response>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_help<R: Response>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_histogram<R: Response>(
self,
commands: impl Args,
) -> PreparedCommand<'a, Self, R>
fn latency_histogram<R: Response>( self, commands: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn latency_history<R: Response>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>
fn latency_history<R: Response>( self, event: LatencyHistoryEvent, ) -> PreparedCommand<'a, Self, R>
Source§fn latency_latest<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn latency_latest<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn latency_reset(self, events: impl Args) -> PreparedCommand<'a, Self, usize>
fn latency_reset(self, events: impl Args) -> 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_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn memory_help(self) -> PreparedCommand<'a, Self, Vec<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(
self,
key: impl Args,
options: MemoryUsageOptions,
) -> PreparedCommand<'a, Self, Option<usize>>
fn memory_usage( self, key: impl Args, options: MemoryUsageOptions, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn module_list<R: Response>(self) -> PreparedCommand<'a, Self, R>
fn module_list<R: Response>(self) -> PreparedCommand<'a, Self, R>
Source§fn module_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn module_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
Source§fn module_load(
self,
path: impl Args,
options: ModuleLoadOptions,
) -> PreparedCommand<'a, Self, ()>
fn module_load( self, path: impl Args, options: ModuleLoadOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn module_unload(self, name: impl Args) -> PreparedCommand<'a, Self, ()>
fn module_unload(self, name: impl Args) -> 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_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn slowlog_help(self) -> PreparedCommand<'a, Self, Vec<String>>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(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn sadd( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn scard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn scard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn sdiff<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
fn sdiff<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn sdiffstore(
self,
destination: impl Args,
keys: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn sdiffstore( self, destination: impl Args, keys: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn sinter<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
fn sinter<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn sintercard(
self,
keys: impl Args,
limit: usize,
) -> PreparedCommand<'a, Self, usize>
fn sintercard( self, keys: impl Args, limit: usize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sinterstore(
self,
destination: impl Args,
keys: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn sinterstore( self, destination: impl Args, keys: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn sismember(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn sismember( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn smembers<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn smembers<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn smismember<R: Response>(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, R>
fn smismember<R: Response>( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn smove(
self,
source: impl Args,
destination: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn smove( self, source: impl Args, destination: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn spop<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn spop<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn srandmember<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn srandmember<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn srem(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn srem( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn sscan<R: Response + DeserializeOwned>(
self,
key: impl Args,
cursor: u64,
options: SScanOptions,
) -> PreparedCommand<'a, Self, (u64, R)>
fn sscan<R: Response + DeserializeOwned>( self, key: impl Args, cursor: u64, options: SScanOptions, ) -> PreparedCommand<'a, Self, (u64, R)>
Source§fn sunion<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
fn sunion<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn sunionstore(
self,
destination: impl Args,
keys: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn sunionstore( self, destination: impl Args, keys: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> SortedSetCommands<'a> for &'a Client
impl<'a> SortedSetCommands<'a> for &'a Client
Source§fn zadd(
self,
key: impl Args,
items: impl Args,
options: ZAddOptions,
) -> PreparedCommand<'a, Self, usize>
fn zadd( self, key: impl Args, items: impl Args, options: ZAddOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn zadd_incr(
self,
key: impl Args,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<f64>>
fn zadd_incr( self, key: impl Args, condition: ZAddCondition, comparison: ZAddComparison, change: bool, score: f64, member: impl Args, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn zcard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn zcard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn zcount(
self,
key: impl Args,
min: impl Args,
max: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zcount( self, key: impl Args, min: impl Args, max: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zdiff<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
fn zdiff<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn zdiff_with_scores<R: Response>(
self,
keys: impl Args,
) -> PreparedCommand<'a, Self, R>
fn zdiff_with_scores<R: Response>( self, keys: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn zdiffstore(
self,
destination: impl Args,
keys: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zdiffstore( self, destination: impl Args, keys: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zincrby(
self,
key: impl Args,
increment: f64,
member: impl Args,
) -> PreparedCommand<'a, Self, f64>
fn zincrby( self, key: impl Args, increment: f64, member: impl Args, ) -> PreparedCommand<'a, Self, f64>
Source§fn zinter<R: Response>(
self,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, R>
fn zinter<R: Response>( self, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, R>
Source§fn zinter_with_scores<R: Response>(
self,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, R>
fn zinter_with_scores<R: Response>( self, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, R>
Source§fn zintercard(
self,
keys: impl Args,
limit: usize,
) -> PreparedCommand<'a, Self, usize>
fn zintercard( self, keys: impl Args, limit: usize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zinterstore(
self,
destination: impl Args,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, usize>
fn zinterstore( self, destination: impl Args, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, usize>
Source§fn zlexcount(
self,
key: impl Args,
min: impl Args,
max: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zlexcount( self, key: impl Args, min: impl Args, max: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zmpop<R: Response + DeserializeOwned>(
self,
keys: impl Args,
where_: ZWhere,
count: usize,
) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
fn zmpop<R: Response + DeserializeOwned>( self, keys: impl Args, where_: ZWhere, count: usize, ) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
Source§fn zmscore<R: Response>(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, R>
fn zmscore<R: Response>( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn zpopmax<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn zpopmax<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn zpopmin<R: Response>(
self,
key: impl Args,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn zpopmin<R: Response>( self, key: impl Args, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmember<R: Response>(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, R>
fn zrandmember<R: Response>( self, key: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmembers<R: Response>(
self,
key: impl Args,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn zrandmembers<R: Response>( self, key: impl Args, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmembers_with_scores<R: Response>(
self,
key: impl Args,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn zrandmembers_with_scores<R: Response>( self, key: impl Args, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrange<R: Response>(
self,
key: impl Args,
start: impl Args,
stop: impl Args,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn zrange<R: Response>( self, key: impl Args, start: impl Args, stop: impl Args, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, R>
key. Read moreSource§fn zrange_with_scores<R: Response>(
self,
key: impl Args,
start: impl Args,
stop: impl Args,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn zrange_with_scores<R: Response>( self, key: impl Args, start: impl Args, stop: impl Args, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, R>
key. Read moreSource§fn zrangestore(
self,
dst: impl Args,
src: impl Args,
start: impl Args,
stop: impl Args,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, usize>
fn zrangestore( self, dst: impl Args, src: impl Args, start: impl Args, stop: impl Args, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn zrank(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrank( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn zrank_with_score(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
fn zrank_with_score( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
Source§fn zrem(
self,
key: impl Args,
members: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zrem( self, key: impl Args, members: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebylex(
self,
key: impl Args,
start: impl Args,
stop: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebylex( self, key: impl Args, start: impl Args, stop: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebyrank(
self,
key: impl Args,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyrank( self, key: impl Args, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebyscore(
self,
key: impl Args,
start: impl Args,
stop: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyscore( self, key: impl Args, start: impl Args, stop: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn zrevrank(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrevrank( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn zrevrank_with_score(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
fn zrevrank_with_score( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
Source§fn zscan<R: Response + DeserializeOwned>(
self,
key: impl Args,
cursor: usize,
options: ZScanOptions,
) -> PreparedCommand<'a, Self, ZScanResult<R>>
fn zscan<R: Response + DeserializeOwned>( self, key: impl Args, cursor: usize, options: ZScanOptions, ) -> PreparedCommand<'a, Self, ZScanResult<R>>
Source§fn zscore(
self,
key: impl Args,
member: impl Args,
) -> PreparedCommand<'a, Self, Option<f64>>
fn zscore( self, key: impl Args, member: impl Args, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn zunion<R: Response>(
self,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, R>
fn zunion<R: Response>( self, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, R>
Source§fn zunion_with_scores<R: Response>(
self,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, R>
fn zunion_with_scores<R: Response>( self, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, R>
Source§fn zunionstore(
self,
destination: impl Args,
keys: impl Args,
weights: Option<impl Args>,
aggregate: ZAggregate,
) -> PreparedCommand<'a, Self, usize>
fn zunionstore( self, destination: impl Args, keys: impl Args, weights: Option<impl Args>, aggregate: ZAggregate, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> StreamCommands<'a> for &'a Client
impl<'a> StreamCommands<'a> for &'a Client
Source§fn xack(
self,
key: impl Args,
group: impl Args,
ids: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn xack( self, key: impl Args, group: impl Args, ids: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn xadd<R: Response>(
self,
key: impl Args,
stream_id: impl Args,
items: impl Args,
options: XAddOptions,
) -> PreparedCommand<'a, Self, R>
fn xadd<R: Response>( self, key: impl Args, stream_id: impl Args, items: impl Args, options: XAddOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn xautoclaim<R: Response + DeserializeOwned>(
self,
key: impl Args,
group: impl Args,
consumer: impl Args,
min_idle_time: u64,
start: impl Args,
options: XAutoClaimOptions,
) -> PreparedCommand<'a, Self, XAutoClaimResult<R>>
fn xautoclaim<R: Response + DeserializeOwned>( self, key: impl Args, group: impl Args, consumer: impl Args, min_idle_time: u64, start: impl Args, options: XAutoClaimOptions, ) -> PreparedCommand<'a, Self, XAutoClaimResult<R>>
Source§fn xclaim<R: Response>(
self,
key: impl Args,
group: impl Args,
consumer: impl Args,
min_idle_time: u64,
ids: impl Args,
options: XClaimOptions,
) -> PreparedCommand<'a, Self, R>
fn xclaim<R: Response>( self, key: impl Args, group: impl Args, consumer: impl Args, min_idle_time: u64, ids: impl Args, options: XClaimOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn xdel(
self,
key: impl Args,
ids: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn xdel( self, key: impl Args, ids: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn xgroup_create(
self,
key: impl Args,
groupname: impl Args,
id: impl Args,
options: XGroupCreateOptions,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_create( self, key: impl Args, groupname: impl Args, id: impl Args, options: XGroupCreateOptions, ) -> PreparedCommand<'a, Self, bool>
groupname for the stream stored at key. Read moreSource§fn xgroup_createconsumer(
self,
key: impl Args,
groupname: impl Args,
consumername: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_createconsumer( self, key: impl Args, groupname: impl Args, consumername: impl Args, ) -> PreparedCommand<'a, Self, bool>
consumername in the consumer group groupname`` of the stream that's stored at key. Read moreSource§fn xgroup_delconsumer(
self,
key: impl Args,
groupname: impl Args,
consumername: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn xgroup_delconsumer( self, key: impl Args, groupname: impl Args, consumername: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn xgroup_destroy(
self,
key: impl Args,
groupname: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_destroy( self, key: impl Args, groupname: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn xgroup_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn xgroup_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
Source§fn xgroup_setid(
self,
key: impl Args,
groupname: impl Args,
id: impl Args,
entries_read: Option<usize>,
) -> PreparedCommand<'a, Self, ()>
fn xgroup_setid( self, key: impl Args, groupname: impl Args, id: impl Args, entries_read: Option<usize>, ) -> PreparedCommand<'a, Self, ()>
Source§fn xinfo_consumers(
self,
key: impl Args,
groupname: impl Args,
) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
fn xinfo_consumers( self, key: impl Args, groupname: impl Args, ) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
groupname consumer group of the stream stored at key. Read moreSource§fn xinfo_groups(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, Vec<XGroupInfo>>
fn xinfo_groups( self, key: impl Args, ) -> PreparedCommand<'a, Self, Vec<XGroupInfo>>
groupname consumer group of the stream stored at key. Read moreSource§fn xinfo_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
fn xinfo_help(self) -> PreparedCommand<'a, Self, Vec<String>>where
Self: Sized,
Source§fn xinfo_stream(
self,
key: impl Args,
options: XInfoStreamOptions,
) -> PreparedCommand<'a, Self, XStreamInfo>
fn xinfo_stream( self, key: impl Args, options: XInfoStreamOptions, ) -> PreparedCommand<'a, Self, XStreamInfo>
key. Read moreSource§fn xlen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn xlen(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn xpending(
self,
key: impl Args,
group: impl Args,
) -> PreparedCommand<'a, Self, XPendingResult>
fn xpending( self, key: impl Args, group: impl Args, ) -> PreparedCommand<'a, Self, XPendingResult>
Source§fn xpending_with_options<R: Response>(
self,
key: impl Args,
group: impl Args,
options: XPendingOptions,
) -> PreparedCommand<'a, Self, R>
fn xpending_with_options<R: Response>( self, key: impl Args, group: impl Args, options: XPendingOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn xrange<R: Response>(
self,
key: impl Args,
start: impl Args,
end: impl Args,
count: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn xrange<R: Response>( self, key: impl Args, start: impl Args, end: impl Args, count: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn xread<R: Response>(
self,
options: XReadOptions,
keys: impl Args,
ids: impl Args,
) -> PreparedCommand<'a, Self, R>
fn xread<R: Response>( self, options: XReadOptions, keys: impl Args, ids: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn xreadgroup<R: Response>(
self,
group: impl Args,
consumer: impl Args,
options: XReadGroupOptions,
keys: impl Args,
ids: impl Args,
) -> PreparedCommand<'a, Self, R>
fn xreadgroup<R: Response>( self, group: impl Args, consumer: impl Args, options: XReadGroupOptions, keys: impl Args, ids: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn xrevrange<R: Response>(
self,
key: impl Args,
end: impl Args,
start: impl Args,
count: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn xrevrange<R: Response>( self, key: impl Args, end: impl Args, start: impl Args, count: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn xtrim(
self,
key: impl Args,
options: XTrimOptions,
) -> PreparedCommand<'a, Self, usize>
fn xtrim( self, key: impl Args, options: XTrimOptions, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> StringCommands<'a> for &'a Client
impl<'a> StringCommands<'a> for &'a Client
Source§fn append(
self,
key: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn append( self, key: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn decr(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn decr(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn decrby(
self,
key: impl Args,
decrement: i64,
) -> PreparedCommand<'a, Self, i64>
fn decrby( self, key: impl Args, decrement: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn get<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn get<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn getdel<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn getdel<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn getex<R: Response>(
self,
key: impl Args,
options: GetExOptions,
) -> PreparedCommand<'a, Self, R>
fn getex<R: Response>( self, key: impl Args, options: GetExOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn getrange<R: Response>(
self,
key: impl Args,
start: isize,
end: isize,
) -> PreparedCommand<'a, Self, R>
fn getrange<R: Response>( self, key: impl Args, start: isize, end: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn getset<R: Response>(
self,
key: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, R>
fn getset<R: Response>( self, key: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn incr(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
fn incr(self, key: impl Args) -> PreparedCommand<'a, Self, i64>
Source§fn incrby(
self,
key: impl Args,
increment: i64,
) -> PreparedCommand<'a, Self, i64>
fn incrby( self, key: impl Args, increment: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn incrbyfloat(
self,
key: impl Args,
increment: f64,
) -> PreparedCommand<'a, Self, f64>
fn incrbyfloat( self, key: impl Args, increment: f64, ) -> PreparedCommand<'a, Self, f64>
Source§fn lcs<R: Response>(
self,
key1: impl Args,
key2: impl Args,
) -> PreparedCommand<'a, Self, R>
fn lcs<R: Response>( self, key1: impl Args, key2: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn lcs_len(
self,
key1: impl Args,
key2: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn lcs_len( self, key1: impl Args, key2: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§fn lcs_idx(
self,
key1: impl Args,
key2: impl Args,
min_match_len: Option<usize>,
with_match_len: bool,
) -> PreparedCommand<'a, Self, LcsResult>
fn lcs_idx( self, key1: impl Args, key2: impl Args, min_match_len: Option<usize>, with_match_len: bool, ) -> PreparedCommand<'a, Self, LcsResult>
Source§fn mget<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
fn mget<R: Response>(self, keys: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn mset(self, items: impl Args) -> PreparedCommand<'a, Self, ()>
fn mset(self, items: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn msetnx(self, items: impl Args) -> PreparedCommand<'a, Self, bool>
fn msetnx(self, items: impl Args) -> PreparedCommand<'a, Self, bool>
Source§fn psetex(
self,
key: impl Args,
milliseconds: u64,
value: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn psetex( self, key: impl Args, milliseconds: u64, value: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn set(self, key: impl Args, value: impl Args) -> PreparedCommand<'a, Self, ()>
fn set(self, key: impl Args, value: impl Args) -> PreparedCommand<'a, Self, ()>
Source§fn set_with_options(
self,
key: impl Args,
value: impl Args,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool,
) -> PreparedCommand<'a, Self, bool>
fn set_with_options( self, key: impl Args, value: impl Args, condition: SetCondition, expiration: SetExpiration, keep_ttl: bool, ) -> PreparedCommand<'a, Self, bool>
Source§fn set_get_with_options<R: Response>(
self,
key: impl Args,
value: impl Args,
condition: SetCondition,
expiration: SetExpiration,
keep_ttl: bool,
) -> PreparedCommand<'a, Self, R>
fn set_get_with_options<R: Response>( self, key: impl Args, value: impl Args, condition: SetCondition, expiration: SetExpiration, keep_ttl: bool, ) -> PreparedCommand<'a, Self, R>
Source§fn setex(
self,
key: impl Args,
seconds: u64,
value: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn setex( self, key: impl Args, seconds: u64, value: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn setnx(
self,
key: impl Args,
value: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn setnx( self, key: impl Args, value: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn setrange(
self,
key: impl Args,
offset: usize,
value: impl Args,
) -> PreparedCommand<'a, Self, usize>
fn setrange( self, key: impl Args, offset: usize, value: impl Args, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> TDigestCommands<'a> for &'a Client
impl<'a> TDigestCommands<'a> for &'a Client
Source§fn tdigest_add(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_add(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn tdigest_byrank<R: Response>(
self,
key: impl Args,
ranks: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_byrank<R: Response>(
self,
key: impl Args,
ranks: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_byrevrank<R: Response>(
self,
key: impl Args,
ranks: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_byrevrank<R: Response>(
self,
key: impl Args,
ranks: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_cdf<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_cdf<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_create(
self,
key: impl Args,
compression: Option<i64>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_create(
self,
key: impl Args,
compression: Option<i64>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn tdigest_info(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, TDigestInfoResult>where
Self: Sized,
fn tdigest_info(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, TDigestInfoResult>where
Self: Sized,
Source§fn tdigest_max(self, key: impl Args) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_max(self, key: impl Args) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
Source§fn tdigest_merge(
self,
destination: impl Args,
sources: impl Args,
options: TDigestMergeOptions,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_merge(
self,
destination: impl Args,
sources: impl Args,
options: TDigestMergeOptions,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn tdigest_min(self, key: impl Args) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_min(self, key: impl Args) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
Source§fn tdigest_quantile<R: Response>(
self,
key: impl Args,
quantiles: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_quantile<R: Response>(
self,
key: impl Args,
quantiles: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_rank<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_rank<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_reset(self, key: impl Args) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn tdigest_reset(self, key: impl Args) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn tdigest_revrank<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn tdigest_revrank<R: Response>(
self,
key: impl Args,
values: impl Args,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn tdigest_trimmed_mean(
self,
key: impl Args,
low_cut_quantile: f64,
high_cut_quantile: f64,
) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
fn tdigest_trimmed_mean(
self,
key: impl Args,
low_cut_quantile: f64,
high_cut_quantile: f64,
) -> PreparedCommand<'a, Self, f64>where
Self: Sized,
Source§impl<'a> TimeSeriesCommands<'a> for &'a Client
impl<'a> TimeSeriesCommands<'a> for &'a Client
Source§fn ts_add(
self,
key: impl Args,
timestamp: impl Args,
value: f64,
options: TsAddOptions,
) -> PreparedCommand<'a, Self, u64>
fn ts_add( self, key: impl Args, timestamp: impl Args, value: f64, options: TsAddOptions, ) -> PreparedCommand<'a, Self, u64>
Source§fn ts_alter(
self,
key: impl Args,
options: TsCreateOptions,
) -> PreparedCommand<'a, Self, ()>
fn ts_alter( self, key: impl Args, options: TsCreateOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn ts_create(
self,
key: impl Args,
options: TsCreateOptions,
) -> PreparedCommand<'a, Self, ()>
fn ts_create( self, key: impl Args, options: TsCreateOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn ts_createrule(
self,
src_key: impl Args,
dst_key: impl Args,
aggregator: TsAggregationType,
bucket_duration: u64,
options: TsCreateRuleOptions,
) -> PreparedCommand<'a, Self, ()>
fn ts_createrule( self, src_key: impl Args, dst_key: impl Args, aggregator: TsAggregationType, bucket_duration: u64, options: TsCreateRuleOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn ts_decrby(
self,
key: impl Args,
value: f64,
options: TsIncrByDecrByOptions,
) -> PreparedCommand<'a, Self, ()>
fn ts_decrby( self, key: impl Args, value: f64, options: TsIncrByDecrByOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn ts_del(
self,
key: impl Args,
from_timestamp: u64,
to_timestamp: u64,
) -> PreparedCommand<'a, Self, usize>
fn ts_del( self, key: impl Args, from_timestamp: u64, to_timestamp: u64, ) -> PreparedCommand<'a, Self, usize>
Source§fn ts_deleterule(
self,
src_key: impl Args,
dst_key: impl Args,
) -> PreparedCommand<'a, Self, ()>
fn ts_deleterule( self, src_key: impl Args, dst_key: impl Args, ) -> PreparedCommand<'a, Self, ()>
Source§fn ts_get(
self,
key: impl Args,
options: TsGetOptions,
) -> PreparedCommand<'a, Self, Option<(u64, f64)>>
fn ts_get( self, key: impl Args, options: TsGetOptions, ) -> PreparedCommand<'a, Self, Option<(u64, f64)>>
Source§fn ts_incrby(
self,
key: impl Args,
value: f64,
options: TsIncrByDecrByOptions,
) -> PreparedCommand<'a, Self, u64>
fn ts_incrby( self, key: impl Args, value: f64, options: TsIncrByDecrByOptions, ) -> PreparedCommand<'a, Self, u64>
Source§fn ts_info(
self,
key: impl Args,
debug: bool,
) -> PreparedCommand<'a, Self, TsInfoResult>
fn ts_info( self, key: impl Args, debug: bool, ) -> PreparedCommand<'a, Self, TsInfoResult>
Source§fn ts_madd<R: Response>(self, items: impl Args) -> PreparedCommand<'a, Self, R>
fn ts_madd<R: Response>(self, items: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn ts_mget<R: Response>(
self,
options: TsMGetOptions,
filters: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ts_mget<R: Response>( self, options: TsMGetOptions, filters: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ts_mrange<R: Response>(
self,
from_timestamp: impl Args,
to_timestamp: impl Args,
options: TsMRangeOptions,
filters: impl Args,
groupby_options: TsGroupByOptions,
) -> PreparedCommand<'a, Self, R>
fn ts_mrange<R: Response>( self, from_timestamp: impl Args, to_timestamp: impl Args, options: TsMRangeOptions, filters: impl Args, groupby_options: TsGroupByOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn ts_mrevrange<R: Response>(
self,
from_timestamp: impl Args,
to_timestamp: impl Args,
options: TsMRangeOptions,
filters: impl Args,
groupby_options: TsGroupByOptions,
) -> PreparedCommand<'a, Self, R>
fn ts_mrevrange<R: Response>( self, from_timestamp: impl Args, to_timestamp: impl Args, options: TsMRangeOptions, filters: impl Args, groupby_options: TsGroupByOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn ts_queryindex<R: Response>(
self,
filters: impl Args,
) -> PreparedCommand<'a, Self, R>
fn ts_queryindex<R: Response>( self, filters: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn ts_range<R: Response>(
self,
key: impl Args,
from_timestamp: impl Args,
to_timestamp: impl Args,
options: TsRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn ts_range<R: Response>( self, key: impl Args, from_timestamp: impl Args, to_timestamp: impl Args, options: TsRangeOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn ts_revrange<R: Response>(
self,
key: impl Args,
from_timestamp: impl Args,
to_timestamp: impl Args,
options: TsRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn ts_revrange<R: Response>( self, key: impl Args, from_timestamp: impl Args, to_timestamp: impl Args, options: TsRangeOptions, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> TopKCommands<'a> for &'a Client
impl<'a> TopKCommands<'a> for &'a Client
Source§fn topk_add<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn topk_add<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn topk_incrby<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn topk_incrby<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn topk_info(self, key: impl Args) -> PreparedCommand<'a, Self, TopKInfoResult>
fn topk_info(self, key: impl Args) -> PreparedCommand<'a, Self, TopKInfoResult>
Source§fn topk_list<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
fn topk_list<R: Response>(self, key: impl Args) -> PreparedCommand<'a, Self, R>
Source§fn topk_list_with_count<R: Response + DeserializeOwned>(
self,
key: impl Args,
) -> PreparedCommand<'a, Self, TopKListWithCountResult<R>>
fn topk_list_with_count<R: Response + DeserializeOwned>( self, key: impl Args, ) -> PreparedCommand<'a, Self, TopKListWithCountResult<R>>
Source§fn topk_query<R: Response>(
self,
key: impl Args,
items: impl Args,
) -> PreparedCommand<'a, Self, R>
fn topk_query<R: Response>( self, key: impl Args, items: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> TransactionCommands<'a> for &'a Client
impl<'a> TransactionCommands<'a> for &'a Client
Source§impl<'a> VectorSetCommands<'a> for &'a Client
impl<'a> VectorSetCommands<'a> for &'a Client
Source§fn vadd(
self,
key: impl Args,
reduce_dim: Option<usize>,
values: &[f32],
element: impl Args,
options: VAddOptions,
) -> PreparedCommand<'a, Self, bool>
fn vadd( self, key: impl Args, reduce_dim: Option<usize>, values: &[f32], element: impl Args, options: VAddOptions, ) -> PreparedCommand<'a, Self, bool>
Source§fn vcard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn vcard(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn vdim(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
fn vdim(self, key: impl Args) -> PreparedCommand<'a, Self, usize>
Source§fn vemb<R: Response>(
self,
key: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, R>
fn vemb<R: Response>( self, key: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn vgetattr<R: Response>(
self,
key: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, R>
fn vgetattr<R: Response>( self, key: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn vinfo(self, key: impl Args) -> PreparedCommand<'a, Self, VInfoResult>
fn vinfo(self, key: impl Args) -> PreparedCommand<'a, Self, VInfoResult>
Source§fn vlinks<R: Response>(
self,
key: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, R>
fn vlinks<R: Response>( self, key: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn vlinks_with_score<R: Response>(
self,
key: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, R>
fn vlinks_with_score<R: Response>( self, key: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, R>
Source§fn vrandmember<R: Response>(
self,
key: impl Args,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn vrandmember<R: Response>( self, key: impl Args, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn vrem(
self,
key: impl Args,
element: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn vrem( self, key: impl Args, element: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn vsetattr(
self,
key: impl Args,
element: impl Args,
json: impl Args,
) -> PreparedCommand<'a, Self, bool>
fn vsetattr( self, key: impl Args, element: impl Args, json: impl Args, ) -> PreparedCommand<'a, Self, bool>
Source§fn vsim<R: Response>(
self,
key: impl Args,
vector_or_element: VectorOrElement<'_>,
options: VSimOptions,
) -> PreparedCommand<'a, Self, R>
fn vsim<R: Response>( self, key: impl Args, vector_or_element: VectorOrElement<'_>, options: VSimOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn vsim_with_scores<R: Response>(
self,
key: impl Args,
vector_or_element: VectorOrElement<'_>,
options: VSimOptions,
) -> PreparedCommand<'a, Self, R>
fn vsim_with_scores<R: Response>( self, key: impl Args, vector_or_element: VectorOrElement<'_>, options: VSimOptions, ) -> PreparedCommand<'a, Self, R>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)