pub struct Client { /* private fields */ }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 fn config(&self) -> &Config
pub fn config(&self) -> &Config
The configuration this client was built from.
A pool wrapper, a health checker or a telemetry exporter can then ask a
client what it was configured with instead of being handed the Config
separately. It is the value after parsing, so a client built from a URI
reads back every default the URI left unsaid.
§Example
use rustis::{client::{Client, ServerConfig}, Result};
let client = Client::connect("127.0.0.1:6379").await?;
assert!(matches!(client.config().server, ServerConfig::Standalone { .. }));Sourcepub fn stats(&self) -> ClientStats
pub fn stats(&self) -> ClientStats
What the connection is doing right now: queue depth, shed commands, reconnections.
This is the other half of BackpressureConfig:
the budget is sized against
queued_bytes_high_water, and
whether it is being hit is shed_commands.
Every clone of a client reads the same counters, one connection having
one queue.
§Example
use rustis::{client::Client, Result};
let client = Client::connect("127.0.0.1:6379").await?;
assert_eq!(0, client.stats().shed_commands);Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Whether the link to the server is up.
false covers a link that is down and one that is backing off between
attempts, both of which recover on their own. The state that does not is
is_terminated.
Sourcepub fn server_version(&self) -> Option<Arc<str>>
pub fn server_version(&self) -> Option<Arc<str>>
The server version the handshake reported, refreshed at every reconnection.
None for a cluster: its nodes have versions of their own, so one string
would have to pick a node and hide the rest. Reading this replaces
re-issuing HELLO to branch on a version-dependent behaviour.
Sourcepub fn is_terminated(&self) -> bool
pub fn is_terminated(&self) -> bool
Whether this client is finished for good.
The network task behind the client ends when the connection is gone
beyond recovery: a non-zero
ReconnectionConfig budget
exhausted, or the last handle dropped. Every command issued afterwards
fails, including long after the server has come back, and the only
recovery is a new client from Client::connect.
This is what a liveness probe reads: the state is otherwise invisible, a
process staying alive and serving traffic it cannot answer. Keep the
default budget of 0 in a long-lived service and it never happens.
It reports the task, not the link. false says nothing about a connection
that is merely idle, disconnected, or backing off between attempts — those
all recover on their own.
§Example
use rustis::{client::Client, Result};
let client = Client::connect("127.0.0.1:6379").await?;
assert!(!client.is_terminated());Sourcepub async fn close(self) -> Result<CloseOutcome>
pub async fn close(self) -> Result<CloseOutcome>
Ends the connection, if this handle is the last one on it.
A Client is a handle: several clones share one connection, one queue
and one network task. Only the last handle can end them, so the outcome
is what the call reports:
CloseOutcome::Closed means the
send channel was closed and the network task has finished, and
StillShared means another
handle was still holding it and nothing was shut down here. Ok alone is
not the answer, which is why the outcome is returned rather than
discarded: a shutdown path that treats Ok(()) as “drained” would be
wrong for every clone but one.
Awaiting a Closed outcome awaits the network task, so the socket and
the buffers are gone when it returns. Dropping the last handle does the
same shutdown, without waiting for it.
Handles may be given up at the same time, by close or by Drop, in any
mix: the shutdown goes to whichever goes last, so at most one call reads
Closed, and none does when the last handle is a dropped one.
§Example
use rustis::{client::{Client, CloseOutcome}, Result};
let client = Client::connect("127.0.0.1:6379").await?;
let clone = client.clone();
assert_eq!(CloseOutcome::StillShared, client.close().await?);
assert_eq!(CloseOutcome::Closed, clone.close().await?);Sourcepub fn into_exclusive(self) -> Result<ExclusiveClient>
pub fn into_exclusive(self) -> Result<ExclusiveClient>
Turns this handle into an ExclusiveClient, the client that owns its
connection and may therefore run
BlockingCommands and
watch.
The conversion succeeds only when this is the sole handle on the
connection. A surviving clone would keep sending commands over a
connection the exclusive client believes is its own, which is the very
situation the two client types exist to prevent — so the check is what
gives ExclusiveClient its meaning, not a formality. Streams already
opened from this client (create_pub_sub, a
Transaction, a MonitorStream) hold a handle too and count here.
The client is consumed either way: on failure other handles exist by definition, so nothing is lost with it. Two clones converting concurrently both observe the other and both fail, which is the safe direction.
§Errors
ClientError::NotExclusive when another handle on the same connection
is alive.
§Example
use rustis::{client::Client, commands::BlockingCommands, Result};
let client = Client::connect("127.0.0.1:6379").await?.into_exclusive()?;
let result: Option<(String, String)> = client.blpop("key", 30.).await?;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 async fn send<T: DeserializeOwned>(
&self,
command: impl Into<Command>,
retry_on_error: Option<bool>,
) -> Result<T>
pub async fn send<T: DeserializeOwned>( &self, command: impl Into<Command>, retry_on_error: Option<bool>, ) -> Result<T>
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
§Warning
In Cluster mode, the arguments that are Redis keys must be added with
CommandBuilder::key: a command built with
arg alone carries no slot and is sent to a
random node. A multi-key command such as MSET also requires all its keys to hash
to the same slot, which the {my} hash tag guarantees in the example below.
Unless R is an Option, a nil reply decodes as the neutral value of R
(0, 0.0, false, "") instead of being rejected. Declare Option<R> when the
command can reply nil. See Command results.
Dropping the returned future does not cancel the command: the message is already queued,
so it is sent and executed by the server and only the reply is discarded. A timeout, a
select! or an aborted task therefore leaves a non-idempotent command applied. See
Cancellation and timeouts.
§Example
use rustis::{client::Client, commands::{FlushingMode, ServerCommands}, resp::cmd, Result};
#[tokio::main]
async fn main() -> Result<()> {
let client = Client::connect("127.0.0.1:6379").await?;
client.flushall(FlushingMode::Sync).await?;
client
.send::<()>(
cmd("MSET")
.key("{my}key1")
.arg("value1")
.key("{my}key2")
.arg("value2")
.key("{my}key3")
.arg("value3")
.key("{my}key4")
.arg("value4"),
None,
)
.await?;
let values: Vec<String> = client
.send(
cmd("MGET")
.key("{my}key1")
.key("{my}key2")
.key("{my}key3")
.key("{my}key4"),
None,
)
.await?;
assert_eq!(vec!["value1".to_owned(), "value2".to_owned(), "value3".to_owned(), "value4".to_owned()], values);
Ok(())
}Sourcepub async fn send_raw(
&self,
command: impl Into<Command>,
retry_on_error: Option<bool>,
) -> Result<RawResponse>
pub async fn send_raw( &self, command: impl Into<Command>, retry_on_error: Option<bool>, ) -> Result<RawResponse>
Sends an arbitrary command to the server and hands back the reply as RESP bytes.
This is the reply below the serde layer, for the callers that do not want
a Rust type out of it: a proxy forwarding replies to another connection,
a bridge to another protocol, a reader of a shape no type models. Anything
that reads a value is better served by send, and
Value is the same reply as a tree.
A Redis error is a reply here, not a failure: it is handed back like any
other, since a caller forwarding replies has to forward the failures too.
RawResponse::is_error tells them apart, and an installed
CommandInterceptor is told the
command failed, as it is on send. The returned
Error is therefore the driver’s own: a connection lost,
a timeout, a reply that cannot be read.
§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
§Warning
The bytes are the frame the client received, byte for byte, except for a reply the client built itself: see what is verbatim and what is rewritten.
The Cluster key rule of send applies here too.
§Example
use rustis::{client::Client, commands::StringCommands, resp::cmd, Result};
#[tokio::main]
async fn main() -> Result<()> {
let client = Client::connect("127.0.0.1:6379").await?;
client.set("raw_key", "value").await?;
let raw = client.send_raw(cmd("GET").key("raw_key"), None).await?;
assert_eq!(b"$5\r\nvalue\r\n", raw.as_bytes());
Ok(())
}Sourcepub fn send_and_forget(
&self,
command: impl Into<Command>,
retry_on_error: Option<bool>,
) -> Result<()>
pub fn send_and_forget( &self, command: impl Into<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 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
Sourcepub fn create_client_tracking_invalidation_stream(
&self,
) -> Result<ClientTrackingInvalidationStream>
pub fn create_client_tracking_invalidation_stream( &self, ) -> Result<ClientTrackingInvalidationStream>
Create a stream of client-side caching invalidations.
The stream yields the keys Redis has invalidated, as
BulkString — Redis keys are binary-safe.
Enable tracking on the same client with
client_tracking
for the server to start sending them.
use rustis::{client::{Client, ClientTrackingInvalidationStream}, Result};
async fn watch(client: &Client) -> Result<ClientTrackingInvalidationStream> {
client.create_client_tracking_invalidation_stream()
}Trait Implementations§
Source§impl<'a> ArrayCommands<'a> for &'a Client
impl<'a> ArrayCommands<'a> for &'a Client
Source§fn arcount(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn arcount(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn ardel(
self,
key: impl Serialize,
indices: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn ardel( self, key: impl Serialize, indices: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn ardelrange(
self,
key: impl Serialize,
ranges: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn ardelrange( self, key: impl Serialize, ranges: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
(start, end) ranges. Read moreSource§fn arget<R: DeserializeOwned>(
self,
key: impl Serialize,
index: usize,
) -> PreparedCommand<'a, Self, R>
fn arget<R: DeserializeOwned>( self, key: impl Serialize, index: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn argetrange<R: DeserializeOwned>(
self,
key: impl Serialize,
start: usize,
end: usize,
) -> PreparedCommand<'a, Self, R>
fn argetrange<R: DeserializeOwned>( self, key: impl Serialize, start: usize, end: usize, ) -> PreparedCommand<'a, Self, R>
[start, end]. Read moreSource§fn argrep<R: DeserializeOwned>(
self,
key: impl Serialize,
start: impl Serialize,
end: impl Serialize,
options: ArGrep<'_>,
) -> PreparedCommand<'a, Self, R>
fn argrep<R: DeserializeOwned>( self, key: impl Serialize, start: impl Serialize, end: impl Serialize, options: ArGrep<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn arinfo(
self,
key: impl Serialize,
options: ArInfoOptions,
) -> PreparedCommand<'a, Self, ArrayInfo>
fn arinfo( self, key: impl Serialize, options: ArInfoOptions, ) -> PreparedCommand<'a, Self, ArrayInfo>
Source§fn arinsert(
self,
key: impl Serialize,
values: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn arinsert( self, key: impl Serialize, values: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn arlastitems<R: DeserializeOwned>(
self,
key: impl Serialize,
count: usize,
options: ArLastItemsOptions,
) -> PreparedCommand<'a, Self, R>
fn arlastitems<R: DeserializeOwned>( self, key: impl Serialize, count: usize, options: ArLastItemsOptions, ) -> PreparedCommand<'a, Self, R>
count most recently inserted elements. Read moreSource§fn arlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn arlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn armget<R: DeserializeOwned>(
self,
key: impl Serialize,
indices: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn armget<R: DeserializeOwned>( self, key: impl Serialize, indices: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn armset(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn armset( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
(index, value) pairs at once. The pairs need not be
contiguous nor ordered. Read moreSource§fn arop<R: DeserializeOwned>(
self,
key: impl Serialize,
start: usize,
end: usize,
operation: ArOperation<'_>,
) -> PreparedCommand<'a, Self, R>
fn arop<R: DeserializeOwned>( self, key: impl Serialize, start: usize, end: usize, operation: ArOperation<'_>, ) -> PreparedCommand<'a, Self, R>
[start, end]. Read moreSource§fn arring(
self,
key: impl Serialize,
size: usize,
values: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn arring( self, key: impl Serialize, size: usize, values: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
size slots. Read moreSource§fn arscan<R: DeserializeOwned>(
self,
key: impl Serialize,
start: usize,
end: usize,
limit: impl Into<Option<usize>>,
) -> PreparedCommand<'a, Self, R>
fn arscan<R: DeserializeOwned>( self, key: impl Serialize, start: usize, end: usize, limit: impl Into<Option<usize>>, ) -> PreparedCommand<'a, Self, R>
[start, end]. Read moreSource§impl<'a> BitmapCommands<'a> for &'a Client
impl<'a> BitmapCommands<'a> for &'a Client
Source§fn bitcount(
self,
key: impl Serialize,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
fn bitcount( self, key: impl Serialize, range: BitRange, ) -> PreparedCommand<'a, Self, usize>
Source§fn bitfield<'b>(
self,
key: impl Serialize,
sub_commands: impl IntoIterator<Item = BitFieldSubCommand<'b>> + Serialize,
) -> PreparedCommand<'a, Self, Vec<u64>>
fn bitfield<'b>( self, key: impl Serialize, sub_commands: impl IntoIterator<Item = BitFieldSubCommand<'b>> + Serialize, ) -> PreparedCommand<'a, Self, Vec<u64>>
Source§fn bitfield_readonly<'b>(
self,
key: impl Serialize,
sub_commands: impl IntoIterator<Item = BitFieldSubCommand<'b>> + Serialize,
) -> PreparedCommand<'a, Self, Vec<u64>>
fn bitfield_readonly<'b>( self, key: impl Serialize, sub_commands: impl IntoIterator<Item = BitFieldSubCommand<'b>> + Serialize, ) -> PreparedCommand<'a, Self, Vec<u64>>
Source§fn bitop(
self,
operation: BitOperation,
dest_key: impl Serialize,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn bitop( self, operation: BitOperation, dest_key: impl Serialize, keys: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn bitpos(
self,
key: impl Serialize,
bit: u64,
range: BitRange,
) -> PreparedCommand<'a, Self, usize>
fn bitpos( self, key: impl Serialize, bit: u64, range: BitRange, ) -> PreparedCommand<'a, Self, usize>
Source§impl<'a> BloomCommands<'a> for &'a Client
impl<'a> BloomCommands<'a> for &'a Client
Source§fn bf_add(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn bf_add( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn bf_exists(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn bf_exists( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn bf_card(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn bf_card(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn bf_info_all(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, BfInfoResult>
fn bf_info_all( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, BfInfoResult>
Source§fn bf_info<R: DeserializeOwned>(
self,
key: impl Serialize,
param: BfInfoParameter,
) -> PreparedCommand<'a, Self, R>
fn bf_info<R: DeserializeOwned>( self, key: impl Serialize, param: BfInfoParameter, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_insert<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
options: BfInsertOptions,
) -> PreparedCommand<'a, Self, R>
fn bf_insert<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, options: BfInsertOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_loadchunk(
self,
key: impl Serialize,
iterator: i64,
data: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn bf_loadchunk( self, key: impl Serialize, iterator: i64, data: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
bf_scandump. Read moreSource§fn bf_madd<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn bf_madd<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_mexists<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn bf_mexists<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn bf_reserve(
self,
key: impl Serialize,
error_rate: f64,
capacity: usize,
options: BfReserveOptions,
) -> PreparedCommand<'a, Self, ()>
fn bf_reserve( self, key: impl Serialize, error_rate: f64, capacity: usize, options: BfReserveOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn bf_scandump(
self,
key: impl Serialize,
iterator: i64,
) -> PreparedCommand<'a, Self, BfScanDumpResult>
fn bf_scandump( self, key: impl Serialize, iterator: i64, ) -> PreparedCommand<'a, Self, BfScanDumpResult>
Source§impl<'a> ClusterCommands<'a> for &'a Client
impl<'a> ClusterCommands<'a> for &'a Client
Source§fn cluster_addslots(
self,
slots: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_addslots( self, slots: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_addslotsrange(
self,
slots: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_addslotsrange( self, slots: impl Serialize, ) -> 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(
self,
node_id: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn cluster_count_failure_reports( self, node_id: impl Serialize, ) -> 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(
self,
slots: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_delslots( self, slots: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_delslotsrange(
self,
slots: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_delslotsrange( self, slots: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
cluster_delslotsrange
command in that they both remove hash slots from the node. Read moreSource§fn cluster_failover(
self,
option: Option<ClusterFailoverOption>,
) -> PreparedCommand<'a, Self, ()>
fn cluster_failover( self, option: Option<ClusterFailoverOption>, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>
fn cluster_flushslots(self) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_forget(
self,
node_id: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_forget( self, node_id: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_getkeysinslot<R: DeserializeOwned>(
self,
slot: u16,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn cluster_getkeysinslot<R: DeserializeOwned>( self, slot: u16, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn cluster_info(self) -> PreparedCommand<'a, Self, ClusterInfo>
fn cluster_info(self) -> PreparedCommand<'a, Self, ClusterInfo>
Source§fn cluster_keyslot(self, key: impl Serialize) -> PreparedCommand<'a, Self, u16>
fn cluster_keyslot(self, key: impl Serialize) -> PreparedCommand<'a, Self, u16>
Source§fn cluster_links<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn cluster_links<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_meet(
self,
ip: impl Serialize,
port: u16,
cluster_bus_port: Option<u16>,
) -> PreparedCommand<'a, Self, ()>
fn cluster_meet( self, ip: impl Serialize, port: u16, cluster_bus_port: Option<u16>, ) -> PreparedCommand<'a, Self, ()>
Source§fn cluster_myid<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn cluster_myid<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_myshardid<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn cluster_myshardid<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_nodes<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn cluster_nodes<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_replicas<R: DeserializeOwned>(
self,
node_id: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cluster_replicas<R: DeserializeOwned>( self, node_id: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn cluster_replicate(
self,
node_id: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cluster_replicate( self, node_id: impl Serialize, ) -> 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: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn cluster_shards<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn cluster_slot_stats<R: DeserializeOwned>(
self,
filter: ClusterSlotStatsFilter,
) -> PreparedCommand<'a, Self, R>
fn cluster_slot_stats<R: DeserializeOwned>( self, filter: ClusterSlotStatsFilter, ) -> PreparedCommand<'a, Self, R>
Source§fn cluster_migration_import<R: DeserializeOwned>(
self,
slot_ranges: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cluster_migration_import<R: DeserializeOwned>( self, slot_ranges: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn cluster_migration_cancel(
self,
target: ClusterMigrationTarget<'_>,
) -> PreparedCommand<'a, Self, usize>
fn cluster_migration_cancel( self, target: ClusterMigrationTarget<'_>, ) -> PreparedCommand<'a, Self, usize>
Source§fn cluster_migration_status<R: DeserializeOwned>(
self,
target: ClusterMigrationTarget<'_>,
) -> PreparedCommand<'a, Self, R>
fn cluster_migration_status<R: DeserializeOwned>( self, target: ClusterMigrationTarget<'_>, ) -> PreparedCommand<'a, Self, R>
ClusterMigrationTarget::Id, or all tasks for
ClusterMigrationTarget::All. Read moreSource§impl<'a> ConnectionCommands<'a> for &'a Client
impl<'a> ConnectionCommands<'a> for &'a Client
Source§fn auth(
self,
username: impl Serialize,
password: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn auth( self, username: impl Serialize, password: impl Serialize, ) -> 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: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn client_getname<R: DeserializeOwned>(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: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn client_help<R: DeserializeOwned>(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 Serialize,
) -> PreparedCommand<'a, Self, ()>
fn client_setname( self, connection_name: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn client_setinfo(
self,
attr: ClientInfoAttribute,
info: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn client_setinfo( self, attr: ClientInfoAttribute, info: impl Serialize, ) -> 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: DeserializeOwned>(
self,
message: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn echo<R: DeserializeOwned>( self, message: impl Serialize, ) -> PreparedCommand<'a, Self, R>
message. Read moreSource§fn ping<R: DeserializeOwned>(
self,
message: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn ping<R: DeserializeOwned>( self, message: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> CountMinSketchCommands<'a> for &'a Client
impl<'a> CountMinSketchCommands<'a> for &'a Client
Source§fn cms_incrby<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cms_incrby<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn cms_info(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, CmsInfoResult>
fn cms_info( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, CmsInfoResult>
Source§fn cms_initbydim(
self,
key: impl Serialize,
width: usize,
depth: usize,
) -> PreparedCommand<'a, Self, ()>
fn cms_initbydim( self, key: impl Serialize, width: usize, depth: usize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cms_initbyprob(
self,
key: impl Serialize,
error: f64,
probability: f64,
) -> PreparedCommand<'a, Self, ()>
fn cms_initbyprob( self, key: impl Serialize, error: f64, probability: f64, ) -> PreparedCommand<'a, Self, ()>
Source§fn cms_merge(
self,
destination: impl Serialize,
sources: impl Serialize,
weights: Option<impl Serialize>,
) -> PreparedCommand<'a, Self, ()>
fn cms_merge( self, destination: impl Serialize, sources: impl Serialize, weights: Option<impl Serialize>, ) -> PreparedCommand<'a, Self, ()>
Source§fn cms_query<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cms_query<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> CuckooCommands<'a> for &'a Client
impl<'a> CuckooCommands<'a> for &'a Client
Source§fn cf_add(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cf_add( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn cf_addnx(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn cf_addnx( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn cf_count(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn cf_count( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn cf_del(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn cf_del( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn cf_exists(
self,
key: impl Serialize,
item: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn cf_exists( self, key: impl Serialize, item: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn cf_info(self, key: impl Serialize) -> PreparedCommand<'a, Self, CfInfoResult>
fn cf_info(self, key: impl Serialize) -> PreparedCommand<'a, Self, CfInfoResult>
key Read moreSource§fn cf_insert(
self,
key: impl Serialize,
options: CfInsertOptions,
item: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<bool>>
fn cf_insert( self, key: impl Serialize, options: CfInsertOptions, item: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<bool>>
Source§fn cf_insertnx<R: DeserializeOwned>(
self,
key: impl Serialize,
options: CfInsertOptions,
item: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cf_insertnx<R: DeserializeOwned>( self, key: impl Serialize, options: CfInsertOptions, item: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn cf_loadchunk(
self,
key: impl Serialize,
iterator: i64,
data: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn cf_loadchunk( self, key: impl Serialize, iterator: i64, data: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
cf_scandump. Read moreSource§fn cf_mexists<R: DeserializeOwned>(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn cf_mexists<R: DeserializeOwned>( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn cf_reserve(
self,
key: impl Serialize,
capacity: usize,
options: CfReserveOptions,
) -> PreparedCommand<'a, Self, ()>
fn cf_reserve( self, key: impl Serialize, 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 Serialize,
iterator: i64,
) -> PreparedCommand<'a, Self, CfScanDumpResult>
fn cf_scandump( self, key: impl Serialize, 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 Serialize,
destination: impl Serialize,
destination_db: Option<usize>,
replace: bool,
) -> PreparedCommand<'a, Self, bool>
fn copy( self, source: impl Serialize, destination: impl Serialize, destination_db: Option<usize>, replace: bool, ) -> PreparedCommand<'a, Self, bool>
Source§fn del(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn del(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn dump(self, key: impl Serialize) -> PreparedCommand<'a, Self, BulkString>
fn dump(self, key: impl Serialize) -> PreparedCommand<'a, Self, BulkString>
Source§fn exists(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn exists(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn expire(
self,
key: impl Serialize,
seconds: u64,
option: impl Into<Option<ExpireOption>>,
) -> PreparedCommand<'a, Self, bool>
fn expire( self, key: impl Serialize, seconds: u64, option: impl Into<Option<ExpireOption>>, ) -> PreparedCommand<'a, Self, bool>
Source§fn expireat(
self,
key: impl Serialize,
unix_time_seconds: u64,
option: impl Into<Option<ExpireOption>>,
) -> PreparedCommand<'a, Self, bool>
fn expireat( self, key: impl Serialize, unix_time_seconds: u64, option: impl Into<Option<ExpireOption>>, ) -> PreparedCommand<'a, Self, bool>
Source§fn expiretime(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn expiretime(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn keys<R: DeserializeOwned>(
self,
pattern: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn keys<R: DeserializeOwned>( self, pattern: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn migrate(
self,
host: impl Serialize,
port: u16,
key: impl Serialize,
destination_db: usize,
timeout: u64,
options: MigrateOptions<'_>,
) -> PreparedCommand<'a, Self, MigrateResult>
fn migrate( self, host: impl Serialize, port: u16, key: impl Serialize, destination_db: usize, timeout: u64, options: MigrateOptions<'_>, ) -> PreparedCommand<'a, Self, MigrateResult>
Source§fn move_(self, key: impl Serialize, db: usize) -> PreparedCommand<'a, Self, i64>
fn move_(self, key: impl Serialize, db: usize) -> PreparedCommand<'a, Self, i64>
Source§fn object_encoding<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn object_encoding<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
key Read moreSource§fn object_freq(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn object_freq(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn object_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn object_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn object_idle_time(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn object_idle_time(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn object_refcount(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn object_refcount(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
key. Read moreSource§fn persist(self, key: impl Serialize) -> PreparedCommand<'a, Self, bool>
fn persist(self, key: impl Serialize) -> PreparedCommand<'a, Self, bool>
Source§fn pexpire(
self,
key: impl Serialize,
milliseconds: u64,
option: impl Into<Option<ExpireOption>>,
) -> PreparedCommand<'a, Self, bool>
fn pexpire( self, key: impl Serialize, milliseconds: u64, option: impl Into<Option<ExpireOption>>, ) -> PreparedCommand<'a, Self, bool>
Source§fn pexpireat(
self,
key: impl Serialize,
unix_time_milliseconds: u64,
option: impl Into<Option<ExpireOption>>,
) -> PreparedCommand<'a, Self, bool>
fn pexpireat( self, key: impl Serialize, unix_time_milliseconds: u64, option: impl Into<Option<ExpireOption>>, ) -> PreparedCommand<'a, Self, bool>
Source§fn pexpiretime(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn pexpiretime(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn pttl(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn pttl(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn randomkey<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn randomkey<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn rename(
self,
key: impl Serialize,
new_key: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn rename( self, key: impl Serialize, new_key: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn renamenx(
self,
key: impl Serialize,
new_key: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn renamenx( self, key: impl Serialize, new_key: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn restore(
self,
key: impl Serialize,
ttl: u64,
serialized_value: &BulkString,
options: RestoreOptions,
) -> PreparedCommand<'a, Self, ()>
fn restore( self, key: impl Serialize, ttl: u64, serialized_value: &BulkString, options: RestoreOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn scan<R: DeserializeOwned>(
self,
cursor: u64,
options: ScanOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn scan<R: DeserializeOwned>( self, cursor: u64, options: ScanOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn sort<R: DeserializeOwned>(
self,
key: impl Serialize,
options: SortOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn sort<R: DeserializeOwned>( self, key: impl Serialize, options: SortOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn sort_and_store(
self,
key: impl Serialize,
destination: impl Serialize,
options: SortOptions<'_>,
) -> PreparedCommand<'a, Self, usize>
fn sort_and_store( self, key: impl Serialize, destination: impl Serialize, options: SortOptions<'_>, ) -> PreparedCommand<'a, Self, usize>
Source§fn sort_readonly<R: DeserializeOwned>(
self,
key: impl Serialize,
options: SortOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn sort_readonly<R: DeserializeOwned>( self, key: impl Serialize, options: SortOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn touch(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn touch(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn ttl(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn ttl(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn type_<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn type_<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn unlink(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn unlink(self, keys: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn wait(
self,
num_replicas: usize,
timeout: u64,
) -> PreparedCommand<'a, Self, usize>
fn wait( self, num_replicas: usize, timeout: u64, ) -> PreparedCommand<'a, Self, usize>
Source§fn waitaof(
self,
num_local: usize,
num_replicas: usize,
timeout: u64,
) -> PreparedCommand<'a, Self, (usize, usize)>
fn waitaof( self, num_local: usize, num_replicas: usize, timeout: u64, ) -> PreparedCommand<'a, Self, (usize, usize)>
Source§impl<'a> GeoCommands<'a> for &'a Client
impl<'a> GeoCommands<'a> for &'a Client
Source§fn geoadd(
self,
key: impl Serialize,
condition: impl Into<Option<GeoAddCondition>>,
change: bool,
items: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn geoadd( self, key: impl Serialize, condition: impl Into<Option<GeoAddCondition>>, change: bool, items: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn geodist(
self,
key: impl Serialize,
member1: impl Serialize,
member2: impl Serialize,
unit: GeoUnit,
) -> PreparedCommand<'a, Self, Option<f64>>
fn geodist( self, key: impl Serialize, member1: impl Serialize, member2: impl Serialize, unit: GeoUnit, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn geohash<R: DeserializeOwned>(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn geohash<R: DeserializeOwned>( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn geopos(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
fn geopos( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<Option<(f64, f64)>>>
Source§fn geosearch<'b, R: DeserializeOwned>(
self,
key: impl Serialize,
from: GeoSearchFrom<'b>,
by: GeoSearchBy,
options: GeoSearchOptions,
) -> PreparedCommand<'a, Self, R>
fn geosearch<'b, R: DeserializeOwned>( self, key: impl Serialize, from: GeoSearchFrom<'b>, by: GeoSearchBy, options: GeoSearchOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn geosearchstore<'b>(
self,
destination: impl Serialize,
source: impl Serialize,
from: GeoSearchFrom<'b>,
by: GeoSearchBy,
options: GeoSearchStoreOptions,
) -> PreparedCommand<'a, Self, u32>
fn geosearchstore<'b>( self, destination: impl Serialize, source: impl Serialize, from: GeoSearchFrom<'b>, by: GeoSearchBy, options: GeoSearchStoreOptions, ) -> PreparedCommand<'a, Self, u32>
Source§impl<'a> HashCommands<'a> for &'a Client
impl<'a> HashCommands<'a> for &'a Client
Source§fn hdel(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn hdel( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn hexists(
self,
key: impl Serialize,
field: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn hexists( self, key: impl Serialize, field: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn hexpire<R: DeserializeOwned>(
self,
key: impl Serialize,
seconds: u64,
option: impl Into<Option<ExpireOption>>,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hexpire<R: DeserializeOwned>( self, key: impl Serialize, seconds: u64, option: impl Into<Option<ExpireOption>>, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hexpireat<R: DeserializeOwned>(
self,
key: impl Serialize,
unix_time_seconds: u64,
option: impl Into<Option<ExpireOption>>,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hexpireat<R: DeserializeOwned>( self, key: impl Serialize, unix_time_seconds: u64, option: impl Into<Option<ExpireOption>>, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hexpiretime<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hexpiretime<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hget<R: DeserializeOwned>(
self,
key: impl Serialize,
field: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hget<R: DeserializeOwned>( self, key: impl Serialize, field: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hgetall<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hgetall<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hgetdel<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hgetdel<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hgetex<R: DeserializeOwned>(
self,
key: impl Serialize,
options: GetExOptions,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hgetex<R: DeserializeOwned>( self, key: impl Serialize, options: GetExOptions, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hincrby(
self,
key: impl Serialize,
field: impl Serialize,
increment: i64,
) -> PreparedCommand<'a, Self, i64>
fn hincrby( self, key: impl Serialize, field: impl Serialize, increment: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn hincrbyfloat(
self,
key: impl Serialize,
field: impl Serialize,
increment: f64,
) -> PreparedCommand<'a, Self, f64>
fn hincrbyfloat( self, key: impl Serialize, field: impl Serialize, increment: f64, ) -> PreparedCommand<'a, Self, f64>
Source§fn hkeys<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hkeys<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn hlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn hmget<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hmget<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hpersist<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hpersist<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpire<R: DeserializeOwned>(
self,
key: impl Serialize,
milliseconds: u64,
option: impl Into<Option<ExpireOption>>,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hpexpire<R: DeserializeOwned>( self, key: impl Serialize, milliseconds: u64, option: impl Into<Option<ExpireOption>>, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpireat<R: DeserializeOwned>(
self,
key: impl Serialize,
unix_time_milliseconds: u64,
option: impl Into<Option<ExpireOption>>,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hpexpireat<R: DeserializeOwned>( self, key: impl Serialize, unix_time_milliseconds: u64, option: impl Into<Option<ExpireOption>>, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hpexpiretime<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hpexpiretime<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> 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: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hpttl<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hrandfield<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hrandfield<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hrandfields<R: DeserializeOwned>(
self,
key: impl Serialize,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn hrandfields<R: DeserializeOwned>( self, key: impl Serialize, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn hrandfields_with_values<R: DeserializeOwned>(
self,
key: impl Serialize,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn hrandfields_with_values<R: DeserializeOwned>( self, key: impl Serialize, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn hscan<F: DeserializeOwned, V: DeserializeOwned>(
self,
key: impl Serialize,
cursor: u64,
options: HScanOptions<'_>,
) -> PreparedCommand<'a, Self, HScanResult<F, V>>
fn hscan<F: DeserializeOwned, V: DeserializeOwned>( self, key: impl Serialize, cursor: u64, options: HScanOptions<'_>, ) -> PreparedCommand<'a, Self, HScanResult<F, V>>
Source§fn hscan_no_values<R: DeserializeOwned>(
self,
key: impl Serialize,
cursor: u64,
options: HScanOptions<'_>,
) -> PreparedCommand<'a, Self, (u64, R)>
fn hscan_no_values<R: DeserializeOwned>( self, key: impl Serialize, cursor: u64, options: HScanOptions<'_>, ) -> PreparedCommand<'a, Self, (u64, R)>
Source§fn hset(
self,
key: impl Serialize,
items: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn hset( self, key: impl Serialize, items: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn hsetex(
self,
key: impl Serialize,
condition: impl Into<Option<HSetExCondition>>,
expiration: impl Into<Option<SetExpiration>>,
items: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn hsetex( self, key: impl Serialize, condition: impl Into<Option<HSetExCondition>>, expiration: impl Into<Option<SetExpiration>>, items: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn hsetnx(
self,
key: impl Serialize,
field: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn hsetnx( self, key: impl Serialize, field: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn hstrlen(
self,
key: impl Serialize,
field: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn hstrlen( self, key: impl Serialize, field: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn httl<R: DeserializeOwned>(
self,
key: impl Serialize,
fields: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn httl<R: DeserializeOwned>( self, key: impl Serialize, fields: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hvals<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn hvals<R: DeserializeOwned>( self, key: impl Serialize, ) -> 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 Serialize,
elements: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn pfadd( self, key: impl Serialize, elements: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§impl<'a> JsonCommands<'a> for &'a Client
impl<'a> JsonCommands<'a> for &'a Client
Source§fn json_arrappend<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
values: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_arrappend<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, values: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrindex<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
options: JsonArrIndexOptions,
) -> PreparedCommand<'a, Self, R>
fn json_arrindex<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, options: JsonArrIndexOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrinsert<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
index: isize,
values: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_arrinsert<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, index: isize, values: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrlen<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_arrlen<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrpop<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
index: isize,
) -> PreparedCommand<'a, Self, R>
fn json_arrpop<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, index: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_arrtrim<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, R>
fn json_arrtrim<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_clear(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn json_clear( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_debug_memory<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_debug_memory<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_del(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn json_del( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_forget(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn json_forget( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn json_get<R: DeserializeOwned>(
self,
key: impl Serialize,
options: JsonGetOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn json_get<R: DeserializeOwned>( self, key: impl Serialize, options: JsonGetOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn json_mget<R: DeserializeOwned>(
self,
keys: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_mget<R: DeserializeOwned>( self, keys: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_merge(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn json_merge( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn json_mset(
self,
key_path_values: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn json_mset( self, key_path_values: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn json_numincrby<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_numincrby<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_nummultby<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_nummultby<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_objkeys<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_objkeys<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
path Read moreSource§fn json_objlen<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_objlen<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_resp<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_resp<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Redis serialization protocol specification form Read moreSource§fn json_set<'b>(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
options: impl Into<Option<JsonSetOptions<'b>>>,
) -> PreparedCommand<'a, Self, ()>
fn json_set<'b>( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, options: impl Into<Option<JsonSetOptions<'b>>>, ) -> PreparedCommand<'a, Self, ()>
Source§fn json_strappend<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_strappend<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_strlen<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_strlen<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn json_toggle<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_toggle<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> PreparedCommand<'a, Self, R>
path Read moreSource§fn json_type<R: DeserializeOwned>(
self,
key: impl Serialize,
path: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn json_type<R: DeserializeOwned>( self, key: impl Serialize, path: impl Serialize, ) -> 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: DeserializeOwned>(
self,
key: impl Serialize,
index: isize,
) -> PreparedCommand<'a, Self, R>
fn lindex<R: DeserializeOwned>( self, key: impl Serialize, index: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn linsert(
self,
key: impl Serialize,
where_: LInsertWhere,
pivot: impl Serialize,
element: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn linsert( self, key: impl Serialize, where_: LInsertWhere, pivot: impl Serialize, element: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn llen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn llen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn lmove<R: DeserializeOwned>(
self,
source: impl Serialize,
destination: impl Serialize,
where_from: LMoveWhere,
where_to: LMoveWhere,
) -> PreparedCommand<'a, Self, R>
fn lmove<R: DeserializeOwned>( self, source: impl Serialize, destination: impl Serialize, where_from: LMoveWhere, where_to: LMoveWhere, ) -> PreparedCommand<'a, Self, R>
Source§fn lmpop<R: DeserializeOwned>(
self,
keys: impl Serialize,
where_: LMoveWhere,
count: usize,
) -> PreparedCommand<'a, Self, (String, Vec<R>)>
fn lmpop<R: DeserializeOwned>( self, keys: impl Serialize, where_: LMoveWhere, count: usize, ) -> PreparedCommand<'a, Self, (String, Vec<R>)>
Source§fn lpop<R: DeserializeOwned>(
self,
key: impl Serialize,
count: u32,
) -> PreparedCommand<'a, Self, R>
fn lpop<R: DeserializeOwned>( self, key: impl Serialize, count: u32, ) -> PreparedCommand<'a, Self, R>
Source§fn lpos(
self,
key: impl Serialize,
element: impl Serialize,
rank: Option<usize>,
max_len: Option<usize>,
) -> PreparedCommand<'a, Self, Option<usize>>
fn lpos( self, key: impl Serialize, element: impl Serialize, rank: Option<usize>, max_len: Option<usize>, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn lpos_with_count<R: DeserializeOwned>(
self,
key: impl Serialize,
element: impl Serialize,
num_matches: usize,
rank: Option<usize>,
max_len: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn lpos_with_count<R: DeserializeOwned>( self, key: impl Serialize, element: impl Serialize, num_matches: usize, rank: Option<usize>, max_len: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn lpush(
self,
key: impl Serialize,
elements: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn lpush( self, key: impl Serialize, elements: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn lpushx(
self,
key: impl Serialize,
elements: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn lpushx( self, key: impl Serialize, elements: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn lrange<R: DeserializeOwned>(
self,
key: impl Serialize,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, R>
fn lrange<R: DeserializeOwned>( self, key: impl Serialize, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn lrem(
self,
key: impl Serialize,
count: isize,
element: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn lrem( self, key: impl Serialize, count: isize, element: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn lset(
self,
key: impl Serialize,
index: isize,
element: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn lset( self, key: impl Serialize, index: isize, element: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn ltrim(
self,
key: impl Serialize,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, ()>
fn ltrim( self, key: impl Serialize, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, ()>
Source§fn rpop<R: DeserializeOwned>(
self,
key: impl Serialize,
count: u32,
) -> PreparedCommand<'a, Self, R>
fn rpop<R: DeserializeOwned>( self, key: impl Serialize, count: u32, ) -> 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 Serialize) -> Result<PubSubStream>
async fn subscribe(self, channels: impl Serialize) -> Result<PubSubStream>
Source§async fn psubscribe(self, patterns: impl Serialize) -> Result<PubSubStream>
async fn psubscribe(self, patterns: impl Serialize) -> Result<PubSubStream>
Source§async fn ssubscribe(self, shardchannels: impl Serialize) -> Result<PubSubStream>
async fn ssubscribe(self, shardchannels: impl Serialize) -> Result<PubSubStream>
Source§fn publish(
self,
channel: impl Serialize,
message: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn publish( self, channel: impl Serialize, message: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn pub_sub_channels<R: DeserializeOwned>(
self,
pattern: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_channels<R: DeserializeOwned>( self, pattern: impl Serialize, ) -> 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: DeserializeOwned>(
self,
channels: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_numsub<R: DeserializeOwned>( self, channels: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn pub_sub_shardchannels<R: DeserializeOwned>(
self,
pattern: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_shardchannels<R: DeserializeOwned>( self, pattern: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn pub_sub_shardnumsub<R: DeserializeOwned>(
self,
channels: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn pub_sub_shardnumsub<R: DeserializeOwned>( self, channels: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> ScriptingCommands<'a> for &'a Client
impl<'a> ScriptingCommands<'a> for &'a Client
Source§fn eval<R: DeserializeOwned>(
self,
script: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn eval<R: DeserializeOwned>( self, script: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn eval_readonly<R: DeserializeOwned>(
self,
script: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn eval_readonly<R: DeserializeOwned>( self, script: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn evalsha<R: DeserializeOwned>(
self,
sha1: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn evalsha<R: DeserializeOwned>( self, sha1: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn evalsha_readonly<R: DeserializeOwned>(
self,
sha1: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn evalsha_readonly<R: DeserializeOwned>( self, sha1: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn fcall<R: DeserializeOwned>(
self,
function: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn fcall<R: DeserializeOwned>( self, function: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn fcall_readonly<R: DeserializeOwned>(
self,
function: impl Serialize,
keys: impl Serialize,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn fcall_readonly<R: DeserializeOwned>( self, function: impl Serialize, keys: impl Serialize, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn function_delete(
self,
library_name: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn function_delete( self, library_name: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn function_dump(self) -> PreparedCommand<'a, Self, BulkString>
fn function_dump(self) -> PreparedCommand<'a, Self, BulkString>
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: DeserializeOwned>(
self,
replace: bool,
function_code: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn function_load<R: DeserializeOwned>( self, replace: bool, function_code: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn function_restore(
self,
serialized_payload: &BulkString,
policy: impl Into<Option<FunctionRestorePolicy>>,
) -> PreparedCommand<'a, Self, ()>
fn function_restore( self, serialized_payload: &BulkString, policy: impl Into<Option<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 Serialize,
) -> PreparedCommand<'a, Self, Vec<bool>>
fn script_exists( self, sha1s: impl Serialize, ) -> 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: DeserializeOwned>(
self,
script: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn script_load<R: DeserializeOwned>( self, script: impl Serialize, ) -> 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 Serialize,
query: impl Serialize,
options: FtAggregateOptions<'_>,
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_aggregate( self, index: impl Serialize, query: impl Serialize, options: FtAggregateOptions<'_>, ) -> PreparedCommand<'a, Self, FtAggregateResult>
Source§fn ft_aliasadd(
self,
alias: impl Serialize,
index: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn ft_aliasadd( self, alias: impl Serialize, index: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_aliasdel(self, alias: impl Serialize) -> PreparedCommand<'a, Self, ()>
fn ft_aliasdel(self, alias: impl Serialize) -> PreparedCommand<'a, Self, ()>
Source§fn ft_aliasupdate(
self,
alias: impl Serialize,
index: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn ft_aliasupdate( self, alias: impl Serialize, index: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_alter(
self,
index: impl Serialize,
skip_initial_scan: bool,
attribute: FtFieldSchema<'_>,
) -> PreparedCommand<'a, Self, ()>
fn ft_alter( self, index: impl Serialize, skip_initial_scan: bool, attribute: FtFieldSchema<'_>, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_config_get<R: DeserializeOwned>(
self,
option: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn ft_config_get<R: DeserializeOwned>( self, option: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_config_set(
self,
option: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn ft_config_set( self, option: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_create(
self,
index: impl Serialize,
options: FtCreateOptions<'_>,
) -> PreparedCommand<'a, Self, ()>
fn ft_create( self, index: impl Serialize, options: FtCreateOptions<'_>, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_cursor_del(
self,
index: impl Serialize,
cursor_id: u64,
) -> PreparedCommand<'a, Self, ()>
fn ft_cursor_del( self, index: impl Serialize, cursor_id: u64, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_cursor_read(
self,
index: impl Serialize,
cursor_id: u64,
) -> PreparedCommand<'a, Self, FtAggregateResult>
fn ft_cursor_read( self, index: impl Serialize, cursor_id: u64, ) -> PreparedCommand<'a, Self, FtAggregateResult>
Source§fn ft_dictadd(
self,
dict: impl Serialize,
terms: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn ft_dictadd( self, dict: impl Serialize, terms: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_dictdel(
self,
dict: impl Serialize,
terms: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn ft_dictdel( self, dict: impl Serialize, terms: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_dictdump<R: DeserializeOwned>(
self,
dict: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn ft_dictdump<R: DeserializeOwned>( self, dict: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_dropindex(
self,
index: impl Serialize,
dd: bool,
) -> PreparedCommand<'a, Self, ()>
fn ft_dropindex( self, index: impl Serialize, dd: bool, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_explain<R: DeserializeOwned>(
self,
index: impl Serialize,
query: impl Serialize,
dialect_version: Option<u64>,
) -> PreparedCommand<'a, Self, R>
fn ft_explain<R: DeserializeOwned>( self, index: impl Serialize, query: impl Serialize, dialect_version: Option<u64>, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_explaincli(
self,
index: impl Serialize,
query: impl Serialize,
dialect_version: Option<u64>,
) -> PreparedCommand<'a, Self, Value>
fn ft_explaincli( self, index: impl Serialize, query: impl Serialize, dialect_version: Option<u64>, ) -> PreparedCommand<'a, Self, Value>
redis-cli --raw Read moreSource§fn ft_info(
self,
index: impl Serialize,
) -> PreparedCommand<'a, Self, FtInfoResult>
fn ft_info( self, index: impl Serialize, ) -> PreparedCommand<'a, Self, FtInfoResult>
Source§fn ft_list<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn ft_list<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn ft_hybrid<R: DeserializeOwned>(
self,
index: impl Serialize,
search: FtHybridSearch<'_>,
vsim: FtHybridVsim<'_>,
options: FtHybridOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn ft_hybrid<R: DeserializeOwned>( self, index: impl Serialize, search: FtHybridSearch<'_>, vsim: FtHybridVsim<'_>, options: FtHybridOptions<'_>, ) -> PreparedCommand<'a, Self, R>
FtHybridSearch) and a
vector similarity search (FtHybridVsim), fusing their results. Read moreSource§fn ft_profile_search(
self,
index: impl Serialize,
limited: bool,
query: impl Serialize,
) -> PreparedCommand<'a, Self, Value>
fn ft_profile_search( self, index: impl Serialize, limited: bool, query: impl Serialize, ) -> PreparedCommand<'a, Self, Value>
Source§fn ft_profile_aggregate(
self,
index: impl Serialize,
limited: bool,
query: impl Serialize,
) -> PreparedCommand<'a, Self, Value>
fn ft_profile_aggregate( self, index: impl Serialize, limited: bool, query: impl Serialize, ) -> PreparedCommand<'a, Self, Value>
ft_aggregate command and collects performance information Read moreSource§fn ft_search(
self,
index: impl Serialize,
query: impl Serialize,
options: FtSearchOptions<'_>,
) -> PreparedCommand<'a, Self, FtSearchResult>
fn ft_search( self, index: impl Serialize, query: impl Serialize, options: FtSearchOptions<'_>, ) -> PreparedCommand<'a, Self, FtSearchResult>
Source§fn ft_spellcheck(
self,
index: impl Serialize,
query: impl Serialize,
options: FtSpellCheckOptions<'_>,
) -> PreparedCommand<'a, Self, FtSpellCheckResult>
fn ft_spellcheck( self, index: impl Serialize, query: impl Serialize, options: FtSpellCheckOptions<'_>, ) -> PreparedCommand<'a, Self, FtSpellCheckResult>
Source§fn ft_syndump<R: DeserializeOwned>(
self,
index: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn ft_syndump<R: DeserializeOwned>( self, index: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_synupdate(
self,
index: impl Serialize,
synonym_group_id: impl Serialize,
skip_initial_scan: bool,
terms: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn ft_synupdate( self, index: impl Serialize, synonym_group_id: impl Serialize, skip_initial_scan: bool, terms: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn ft_tagvals<R: DeserializeOwned>(
self,
index: impl Serialize,
field_name: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn ft_tagvals<R: DeserializeOwned>( self, index: impl Serialize, field_name: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn ft_sugadd(
self,
key: impl Serialize,
string: impl Serialize,
score: f64,
options: FtSugAddOptions<'_>,
) -> PreparedCommand<'a, Self, usize>
fn ft_sugadd( self, key: impl Serialize, string: impl Serialize, score: f64, options: FtSugAddOptions<'_>, ) -> PreparedCommand<'a, Self, usize>
Source§fn ft_sugdel(
self,
key: impl Serialize,
string: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn ft_sugdel( self, key: impl Serialize, string: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn ft_sugget<R: DeserializeOwned>(
self,
key: impl Serialize,
prefix: impl Serialize,
options: FtSugGetOptions,
) -> PreparedCommand<'a, Self, R>
fn ft_sugget<R: DeserializeOwned>( self, key: impl Serialize, prefix: impl Serialize, options: FtSugGetOptions, ) -> PreparedCommand<'a, Self, R>
Source§impl<'a> SentinelCommands<'a> for &'a Client
impl<'a> SentinelCommands<'a> for &'a Client
Source§fn sentinel_config_get<R: DeserializeOwned>(
self,
name: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sentinel_config_get<R: DeserializeOwned>( self, name: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn sentinel_config_set(
self,
name: impl Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_config_set( self, name: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_ckquorum<R: DeserializeOwned>(
self,
master_name: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sentinel_ckquorum<R: DeserializeOwned>( self, master_name: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn sentinel_failover(
self,
master_name: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_failover( self, master_name: impl Serialize, ) -> 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 Serialize,
) -> PreparedCommand<'a, Self, Option<(String, u16)>>
fn sentinel_get_master_addr_by_name( self, master_name: impl Serialize, ) -> PreparedCommand<'a, Self, Option<(String, u16)>>
Source§fn sentinel_info_cache<R: DeserializeOwned>(
self,
master_names: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sentinel_info_cache<R: DeserializeOwned>( self, master_names: impl Serialize, ) -> PreparedCommand<'a, Self, R>
info output from masters and replicas.Source§fn sentinel_master(
self,
master_name: impl Serialize,
) -> PreparedCommand<'a, Self, SentinelMasterInfo>
fn sentinel_master( self, master_name: impl Serialize, ) -> 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 Serialize,
ip: impl Serialize,
port: u16,
quorum: usize,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_monitor( self, name: impl Serialize, ip: impl Serialize, port: u16, quorum: usize, ) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_remove(self, name: impl Serialize) -> PreparedCommand<'a, Self, ()>
fn sentinel_remove(self, name: impl Serialize) -> PreparedCommand<'a, Self, ()>
Source§fn sentinel_set(
self,
name: impl Serialize,
configs: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn sentinel_set( self, name: impl Serialize, configs: impl Serialize, ) -> 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 Serialize,
) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
fn sentinel_replicas( self, master_name: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<SentinelReplicaInfo>>
Source§fn sentinel_reset(
self,
pattern: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn sentinel_reset( self, pattern: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sentinel_sentinels(
self,
master_name: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<SentinelInfo>>
fn sentinel_sentinels( self, master_name: impl Serialize, ) -> 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: DeserializeOwned>(
self,
options: AclCatOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn acl_cat<R: DeserializeOwned>( self, options: AclCatOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_deluser(
self,
usernames: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn acl_deluser( self, usernames: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn acl_dryrun<R: DeserializeOwned>(
self,
username: impl Serialize,
command: impl Serialize,
options: AclDryRunOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_dryrun<R: DeserializeOwned>( self, username: impl Serialize, command: impl Serialize, options: AclDryRunOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_genpass<R: DeserializeOwned>(
self,
options: AclGenPassOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_genpass<R: DeserializeOwned>( self, options: AclGenPassOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_getuser<R: DeserializeOwned>(
self,
username: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn acl_getuser<R: DeserializeOwned>( self, username: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn acl_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn acl_list<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_list<R: DeserializeOwned>(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: DeserializeOwned>(
self,
options: AclLogOptions,
) -> PreparedCommand<'a, Self, R>
fn acl_log<R: DeserializeOwned>( 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 Serialize,
rules: impl Serialize,
) -> PreparedCommand<'a, Self, ()>
fn acl_setuser( self, username: impl Serialize, rules: impl Serialize, ) -> PreparedCommand<'a, Self, ()>
Source§fn acl_users<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn acl_users<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn acl_whoami<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn acl_whoami<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn bgrewriteaof<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn bgrewriteaof<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn bgsave<R: DeserializeOwned>(
self,
options: BgsaveOptions,
) -> PreparedCommand<'a, Self, R>
fn bgsave<R: DeserializeOwned>( 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: DeserializeOwned>(
self,
command_names: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn command_docs<R: DeserializeOwned>( self, command_names: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn command_getkeys<R: DeserializeOwned>(
self,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn command_getkeys<R: DeserializeOwned>( self, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn command_getkeysandflags<R: DeserializeOwned>(
self,
args: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn command_getkeysandflags<R: DeserializeOwned>( self, args: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn command_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn command_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn command_info(
self,
command_names: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
fn command_info( self, command_names: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<CommandInfo>>
Source§fn command_list<R: DeserializeOwned>(
self,
options: CommandListOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn command_list<R: DeserializeOwned>( self, options: CommandListOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn config_get<R: DeserializeOwned>(
self,
params: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn config_get<R: DeserializeOwned>( self, params: impl Serialize, ) -> 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 Serialize) -> PreparedCommand<'a, Self, ()>
fn config_set(self, configs: impl Serialize) -> 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: impl Into<Option<FlushingMode>>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn flushdb(
self,
flushing_mode: impl Into<Option<FlushingMode>>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn flushall(
self,
flushing_mode: impl Into<Option<FlushingMode>>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn flushall(
self,
flushing_mode: impl Into<Option<FlushingMode>>,
) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn info<R: DeserializeOwned>(
self,
sections: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn info<R: DeserializeOwned>( self, sections: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn hotkeys_start(
self,
metrics: impl Serialize,
options: HotKeysStartOptions,
) -> PreparedCommand<'a, Self, ()>
fn hotkeys_start( self, metrics: impl Serialize, options: HotKeysStartOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn hotkeys_stop(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn hotkeys_stop(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
hotkeys_get. Read moreSource§fn hotkeys_get<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn hotkeys_get<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn hotkeys_reset(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
fn hotkeys_reset(self) -> PreparedCommand<'a, Self, ()>where
Self: Sized,
Source§fn hotkeys_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn hotkeys_help<R: DeserializeOwned>(self) -> 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: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_doctor<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_graph<R: DeserializeOwned>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_graph<R: DeserializeOwned>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
fn latency_help<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>where
Self: Sized,
Source§fn latency_histogram<R: DeserializeOwned>(
self,
commands: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn latency_histogram<R: DeserializeOwned>( self, commands: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn latency_history<R: DeserializeOwned>(
self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'a, Self, R>
fn latency_history<R: DeserializeOwned>( self, event: LatencyHistoryEvent, ) -> PreparedCommand<'a, Self, R>
Source§fn latency_latest<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn latency_latest<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn latency_reset(
self,
events: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn latency_reset( self, events: impl Serialize, ) -> 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 Serialize,
options: MemoryUsageOptions,
) -> PreparedCommand<'a, Self, Option<usize>>
fn memory_usage( self, key: impl Serialize, options: MemoryUsageOptions, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn module_list<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
fn module_list<R: DeserializeOwned>(self) -> PreparedCommand<'a, Self, R>
Source§fn module_loadex(
self,
path: impl Serialize,
options: ModuleLoadexOptions,
) -> PreparedCommand<'a, Self, ()>
fn module_loadex( self, path: impl Serialize, options: ModuleLoadexOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn module_unload(self, name: impl Serialize) -> PreparedCommand<'a, Self, ()>
fn module_unload(self, name: impl Serialize) -> PreparedCommand<'a, Self, ()>
name reported by module_list, not its
file path. Read moreSource§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 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: SlowLogGetOptions,
) -> PreparedCommand<'a, Self, Vec<SlowLogEntry>>where
Self: Sized,
fn slowlog_get(
self,
options: SlowLogGetOptions,
) -> 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 Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn sadd( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn scard(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn scard(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn sdiff<R: DeserializeOwned>(
self,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sdiff<R: DeserializeOwned>( self, keys: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn sdiffstore(
self,
destination: impl Serialize,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn sdiffstore( self, destination: impl Serialize, keys: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sinter<R: DeserializeOwned>(
self,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sinter<R: DeserializeOwned>( self, keys: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn sintercard(
self,
keys: impl Serialize,
limit: usize,
) -> PreparedCommand<'a, Self, usize>
fn sintercard( self, keys: impl Serialize, limit: usize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sinterstore(
self,
destination: impl Serialize,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn sinterstore( self, destination: impl Serialize, keys: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sismember(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn sismember( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn smembers<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn smembers<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn smismember<R: DeserializeOwned>(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn smismember<R: DeserializeOwned>( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn smove(
self,
source: impl Serialize,
destination: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn smove( self, source: impl Serialize, destination: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, bool>
Source§fn spop<R: DeserializeOwned>(
self,
key: impl Serialize,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn spop<R: DeserializeOwned>( self, key: impl Serialize, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn srandmember<R: DeserializeOwned>(
self,
key: impl Serialize,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn srandmember<R: DeserializeOwned>( self, key: impl Serialize, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn srem(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn srem( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn sscan<R: DeserializeOwned>(
self,
key: impl Serialize,
cursor: u64,
options: SScanOptions<'_>,
) -> PreparedCommand<'a, Self, (u64, R)>
fn sscan<R: DeserializeOwned>( self, key: impl Serialize, cursor: u64, options: SScanOptions<'_>, ) -> PreparedCommand<'a, Self, (u64, R)>
Source§fn sunion<R: DeserializeOwned>(
self,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn sunion<R: DeserializeOwned>( self, keys: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn sunionstore(
self,
destination: impl Serialize,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn sunionstore( self, destination: impl Serialize, keys: impl Serialize, ) -> 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 Serialize,
items: impl Serialize,
options: ZAddOptions,
) -> PreparedCommand<'a, Self, usize>
fn zadd( self, key: impl Serialize, items: impl Serialize, options: ZAddOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn zadd_incr(
self,
key: impl Serialize,
condition: impl Into<Option<ZAddCondition>>,
comparison: impl Into<Option<ZAddComparison>>,
change: bool,
score: f64,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<f64>>
fn zadd_incr( self, key: impl Serialize, condition: impl Into<Option<ZAddCondition>>, comparison: impl Into<Option<ZAddComparison>>, change: bool, score: f64, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn zcard(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn zcard(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn zcount(
self,
key: impl Serialize,
min: impl Serialize,
max: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zcount( self, key: impl Serialize, min: impl Serialize, max: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zdiff<R: DeserializeOwned>(
self,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn zdiff<R: DeserializeOwned>( self, keys: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn zdiff_with_scores<R: DeserializeOwned>(
self,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn zdiff_with_scores<R: DeserializeOwned>( self, keys: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn zdiffstore(
self,
destination: impl Serialize,
keys: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zdiffstore( self, destination: impl Serialize, keys: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zincrby(
self,
key: impl Serialize,
increment: f64,
member: impl Serialize,
) -> PreparedCommand<'a, Self, f64>
fn zincrby( self, key: impl Serialize, increment: f64, member: impl Serialize, ) -> PreparedCommand<'a, Self, f64>
Source§fn zinter<R: DeserializeOwned>(
self,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, R>
fn zinter<R: DeserializeOwned>( self, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<ZAggregate>>, ) -> PreparedCommand<'a, Self, R>
Source§fn zinter_with_scores<R: DeserializeOwned>(
self,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, R>
fn zinter_with_scores<R: DeserializeOwned>( self, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<ZAggregate>>, ) -> PreparedCommand<'a, Self, R>
Source§fn zintercard(
self,
keys: impl Serialize,
limit: usize,
) -> PreparedCommand<'a, Self, usize>
fn zintercard( self, keys: impl Serialize, limit: usize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zinterstore(
self,
destination: impl Serialize,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, usize>
fn zinterstore( self, destination: impl Serialize, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<ZAggregate>>, ) -> PreparedCommand<'a, Self, usize>
Source§fn zlexcount(
self,
key: impl Serialize,
min: impl Serialize,
max: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zlexcount( self, key: impl Serialize, min: impl Serialize, max: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zmpop<R: DeserializeOwned>(
self,
keys: impl Serialize,
where_: ZWhere,
count: usize,
) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
fn zmpop<R: DeserializeOwned>( self, keys: impl Serialize, where_: ZWhere, count: usize, ) -> PreparedCommand<'a, Self, Option<ZMPopResult<R>>>
Source§fn zmscore<R: DeserializeOwned>(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn zmscore<R: DeserializeOwned>( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn zpopmax<R: DeserializeOwned>(
self,
key: impl Serialize,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn zpopmax<R: DeserializeOwned>( self, key: impl Serialize, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn zpopmin<R: DeserializeOwned>(
self,
key: impl Serialize,
count: usize,
) -> PreparedCommand<'a, Self, R>
fn zpopmin<R: DeserializeOwned>( self, key: impl Serialize, count: usize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmember<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn zrandmember<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmembers<R: DeserializeOwned>(
self,
key: impl Serialize,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn zrandmembers<R: DeserializeOwned>( self, key: impl Serialize, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrandmembers_with_scores<R: DeserializeOwned>(
self,
key: impl Serialize,
count: isize,
) -> PreparedCommand<'a, Self, R>
fn zrandmembers_with_scores<R: DeserializeOwned>( self, key: impl Serialize, count: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn zrange<R: DeserializeOwned>(
self,
key: impl Serialize,
start: impl Serialize,
stop: impl Serialize,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn zrange<R: DeserializeOwned>( self, key: impl Serialize, start: impl Serialize, stop: impl Serialize, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, R>
key. Read moreSource§fn zrange_with_scores<R: DeserializeOwned>(
self,
key: impl Serialize,
start: impl Serialize,
stop: impl Serialize,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, R>
fn zrange_with_scores<R: DeserializeOwned>( self, key: impl Serialize, start: impl Serialize, stop: impl Serialize, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, R>
key. Read moreSource§fn zrangestore(
self,
dst: impl Serialize,
src: impl Serialize,
start: impl Serialize,
stop: impl Serialize,
options: ZRangeOptions,
) -> PreparedCommand<'a, Self, usize>
fn zrangestore( self, dst: impl Serialize, src: impl Serialize, start: impl Serialize, stop: impl Serialize, options: ZRangeOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn zrank(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrank( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn zrank_with_score(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
fn zrank_with_score( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
Source§fn zrem(
self,
key: impl Serialize,
members: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zrem( self, key: impl Serialize, members: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebylex(
self,
key: impl Serialize,
start: impl Serialize,
stop: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebylex( self, key: impl Serialize, start: impl Serialize, stop: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebyrank(
self,
key: impl Serialize,
start: isize,
stop: isize,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyrank( self, key: impl Serialize, start: isize, stop: isize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zremrangebyscore(
self,
key: impl Serialize,
start: impl Serialize,
stop: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn zremrangebyscore( self, key: impl Serialize, start: impl Serialize, stop: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn zrevrank(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<usize>>
fn zrevrank( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<usize>>
Source§fn zrevrank_with_score(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
fn zrevrank_with_score( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<(usize, f64)>>
Source§fn zscan<R: DeserializeOwned>(
self,
key: impl Serialize,
cursor: usize,
options: ZScanOptions<'_>,
) -> PreparedCommand<'a, Self, ZScanResult<R>>
fn zscan<R: DeserializeOwned>( self, key: impl Serialize, cursor: usize, options: ZScanOptions<'_>, ) -> PreparedCommand<'a, Self, ZScanResult<R>>
Source§fn zscore(
self,
key: impl Serialize,
member: impl Serialize,
) -> PreparedCommand<'a, Self, Option<f64>>
fn zscore( self, key: impl Serialize, member: impl Serialize, ) -> PreparedCommand<'a, Self, Option<f64>>
Source§fn zunion<R: DeserializeOwned>(
self,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, R>
fn zunion<R: DeserializeOwned>( self, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<ZAggregate>>, ) -> PreparedCommand<'a, Self, R>
Source§fn zunion_with_scores<R: DeserializeOwned>(
self,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, R>
fn zunion_with_scores<R: DeserializeOwned>( self, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<ZAggregate>>, ) -> PreparedCommand<'a, Self, R>
Source§fn zunionstore(
self,
destination: impl Serialize,
keys: impl Serialize,
weights: impl Serialize,
aggregate: impl Into<Option<ZAggregate>>,
) -> PreparedCommand<'a, Self, usize>
fn zunionstore( self, destination: impl Serialize, keys: impl Serialize, weights: impl Serialize, aggregate: impl Into<Option<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 Serialize,
group: impl Serialize,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn xack( self, key: impl Serialize, group: impl Serialize, ids: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn xnack(
self,
key: impl Serialize,
group: impl Serialize,
mode: XNackMode,
ids: impl Serialize,
options: XNackOptions,
) -> PreparedCommand<'a, Self, usize>
fn xnack( self, key: impl Serialize, group: impl Serialize, mode: XNackMode, ids: impl Serialize, options: XNackOptions, ) -> PreparedCommand<'a, Self, usize>
Source§fn xadd<R: DeserializeOwned>(
self,
key: impl Serialize,
stream_id: impl Serialize,
items: impl Serialize,
options: XAddOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn xadd<R: DeserializeOwned>( self, key: impl Serialize, stream_id: impl Serialize, items: impl Serialize, options: XAddOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn xsetid(
self,
key: impl Serialize,
last_id: impl Serialize,
options: XSetIdOptions,
) -> PreparedCommand<'a, Self, ()>
fn xsetid( self, key: impl Serialize, last_id: impl Serialize, options: XSetIdOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn xcfgset(
self,
key: impl Serialize,
options: XCfgSetOptions,
) -> PreparedCommand<'a, Self, ()>
fn xcfgset( self, key: impl Serialize, options: XCfgSetOptions, ) -> PreparedCommand<'a, Self, ()>
Source§fn xautoclaim<R: DeserializeOwned>(
self,
key: impl Serialize,
group: impl Serialize,
consumer: impl Serialize,
min_idle_time: u64,
start: impl Serialize,
options: XAutoClaimOptions,
) -> PreparedCommand<'a, Self, XAutoClaimResult<R>>
fn xautoclaim<R: DeserializeOwned>( self, key: impl Serialize, group: impl Serialize, consumer: impl Serialize, min_idle_time: u64, start: impl Serialize, options: XAutoClaimOptions, ) -> PreparedCommand<'a, Self, XAutoClaimResult<R>>
Source§fn xclaim<R: DeserializeOwned>(
self,
key: impl Serialize,
group: impl Serialize,
consumer: impl Serialize,
min_idle_time: u64,
ids: impl Serialize,
options: XClaimOptions,
) -> PreparedCommand<'a, Self, R>
fn xclaim<R: DeserializeOwned>( self, key: impl Serialize, group: impl Serialize, consumer: impl Serialize, min_idle_time: u64, ids: impl Serialize, options: XClaimOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn xdel(
self,
key: impl Serialize,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn xdel( self, key: impl Serialize, ids: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn xdelex(
self,
key: impl Serialize,
policy: impl Into<Option<StreamEntryDeletionPolicy>>,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<i64>>
fn xdelex( self, key: impl Serialize, policy: impl Into<Option<StreamEntryDeletionPolicy>>, ids: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<i64>>
Source§fn xackdel(
self,
key: impl Serialize,
group: impl Serialize,
policy: impl Into<Option<StreamEntryDeletionPolicy>>,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<i64>>
fn xackdel( self, key: impl Serialize, group: impl Serialize, policy: impl Into<Option<StreamEntryDeletionPolicy>>, ids: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<i64>>
Source§fn xgroup_create(
self,
key: impl Serialize,
groupname: impl Serialize,
id: impl Serialize,
options: XGroupCreateOptions,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_create( self, key: impl Serialize, groupname: impl Serialize, id: impl Serialize, options: XGroupCreateOptions, ) -> PreparedCommand<'a, Self, bool>
groupname for the stream stored at key. Read moreSource§fn xgroup_createconsumer(
self,
key: impl Serialize,
groupname: impl Serialize,
consumername: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_createconsumer( self, key: impl Serialize, groupname: impl Serialize, consumername: impl Serialize, ) -> 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 Serialize,
groupname: impl Serialize,
consumername: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn xgroup_delconsumer( self, key: impl Serialize, groupname: impl Serialize, consumername: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn xgroup_destroy(
self,
key: impl Serialize,
groupname: impl Serialize,
) -> PreparedCommand<'a, Self, bool>
fn xgroup_destroy( self, key: impl Serialize, groupname: impl Serialize, ) -> 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 Serialize,
groupname: impl Serialize,
id: impl Serialize,
entries_read: Option<usize>,
) -> PreparedCommand<'a, Self, ()>
fn xgroup_setid( self, key: impl Serialize, groupname: impl Serialize, id: impl Serialize, entries_read: Option<usize>, ) -> PreparedCommand<'a, Self, ()>
Source§fn xinfo_consumers(
self,
key: impl Serialize,
groupname: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
fn xinfo_consumers( self, key: impl Serialize, groupname: impl Serialize, ) -> PreparedCommand<'a, Self, Vec<XConsumerInfo>>
groupname consumer group of the stream stored at key. Read moreSource§fn xinfo_groups(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, Vec<XGroupInfo>>
fn xinfo_groups( self, key: impl Serialize, ) -> 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 Serialize,
options: XInfoStreamOptions,
) -> PreparedCommand<'a, Self, XStreamInfo>
fn xinfo_stream( self, key: impl Serialize, options: XInfoStreamOptions, ) -> PreparedCommand<'a, Self, XStreamInfo>
key. Read moreSource§fn xlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
fn xlen(self, key: impl Serialize) -> PreparedCommand<'a, Self, usize>
Source§fn xpending(
self,
key: impl Serialize,
group: impl Serialize,
) -> PreparedCommand<'a, Self, XPendingResult>
fn xpending( self, key: impl Serialize, group: impl Serialize, ) -> PreparedCommand<'a, Self, XPendingResult>
Source§fn xpending_with_options<R: DeserializeOwned>(
self,
key: impl Serialize,
group: impl Serialize,
options: XPendingOptions<'_>,
) -> PreparedCommand<'a, Self, R>
fn xpending_with_options<R: DeserializeOwned>( self, key: impl Serialize, group: impl Serialize, options: XPendingOptions<'_>, ) -> PreparedCommand<'a, Self, R>
Source§fn xrange<R: DeserializeOwned>(
self,
key: impl Serialize,
start: impl Serialize,
end: impl Serialize,
count: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn xrange<R: DeserializeOwned>( self, key: impl Serialize, start: impl Serialize, end: impl Serialize, count: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn xread<R: DeserializeOwned>(
self,
options: XReadOptions,
keys: impl Serialize,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn xread<R: DeserializeOwned>( self, options: XReadOptions, keys: impl Serialize, ids: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn xreadgroup<R: DeserializeOwned>(
self,
group: impl Serialize,
consumer: impl Serialize,
options: XReadGroupOptions,
keys: impl Serialize,
ids: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn xreadgroup<R: DeserializeOwned>( self, group: impl Serialize, consumer: impl Serialize, options: XReadGroupOptions, keys: impl Serialize, ids: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn xrevrange<R: DeserializeOwned>(
self,
key: impl Serialize,
end: impl Serialize,
start: impl Serialize,
count: Option<usize>,
) -> PreparedCommand<'a, Self, R>
fn xrevrange<R: DeserializeOwned>( self, key: impl Serialize, end: impl Serialize, start: impl Serialize, count: Option<usize>, ) -> PreparedCommand<'a, Self, R>
Source§fn xtrim(
self,
key: impl Serialize,
options: XTrimOptions<'_>,
) -> PreparedCommand<'a, Self, usize>
fn xtrim( self, key: impl Serialize, 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 Serialize,
value: impl Serialize,
) -> PreparedCommand<'a, Self, usize>
fn append( self, key: impl Serialize, value: impl Serialize, ) -> PreparedCommand<'a, Self, usize>
Source§fn decr(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn decr(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn decrby(
self,
key: impl Serialize,
decrement: i64,
) -> PreparedCommand<'a, Self, i64>
fn decrby( self, key: impl Serialize, decrement: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn get<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn get<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn getdel<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn getdel<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn digest<R: DeserializeOwned>(
self,
key: impl Serialize,
) -> PreparedCommand<'a, Self, R>
fn digest<R: DeserializeOwned>( self, key: impl Serialize, ) -> PreparedCommand<'a, Self, R>
Source§fn delex<'b>(
self,
key: impl Serialize,
condition: impl Into<Option<DelexCondition<'b>>>,
) -> PreparedCommand<'a, Self, i64>
fn delex<'b>( self, key: impl Serialize, condition: impl Into<Option<DelexCondition<'b>>>, ) -> PreparedCommand<'a, Self, i64>
key based on a value or digest comparison. Read moreSource§fn getex<R: DeserializeOwned>(
self,
key: impl Serialize,
options: GetExOptions,
) -> PreparedCommand<'a, Self, R>
fn getex<R: DeserializeOwned>( self, key: impl Serialize, options: GetExOptions, ) -> PreparedCommand<'a, Self, R>
Source§fn getrange<R: DeserializeOwned>(
self,
key: impl Serialize,
start: isize,
end: isize,
) -> PreparedCommand<'a, Self, R>
fn getrange<R: DeserializeOwned>( self, key: impl Serialize, start: isize, end: isize, ) -> PreparedCommand<'a, Self, R>
Source§fn incr(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
fn incr(self, key: impl Serialize) -> PreparedCommand<'a, Self, i64>
Source§fn incrby(
self,
key: impl Serialize,
increment: i64,
) -> PreparedCommand<'a, Self, i64>
fn incrby( self, key: impl Serialize, increment: i64, ) -> PreparedCommand<'a, Self, i64>
Source§fn increx<R: DeserializeOwned>(
self,
key: impl Serialize,
options: IncrExOptions,
) -> PreparedCommand<'a, Self, R>
fn increx<R: DeserializeOwned>( self, key: impl Serialize, options: IncrExOptions, ) -> PreparedCommand<'a, Self, R>
key, bounded, and set its expiration, atomically. Read more