pub struct Pool { /* private fields */ }Expand description
A cheaply cloneable round-robin client pool.
§Restrictions
The following interfaces are not implemented on Pool:
In many cases, such as publish, callers can work around this by
adding a call to next, but in some scenarios this may not work. As a general rule, any commands
that change or depend on local connection state will not be implemented directly on Pool. Callers can use
clients, next, or last to operate on individual clients if needed.
Implementations§
Source§impl Pool
impl Pool
Sourcepub fn from_clients(clients: Vec<Client>) -> Result<Self, Error>
pub fn from_clients(clients: Vec<Client>) -> Result<Self, Error>
Create a new pool from an existing set of clients.
Sourcepub fn new(
config: Config,
perf: Option<PerformanceConfig>,
connection: Option<ConnectionConfig>,
policy: Option<ReconnectPolicy>,
size: usize,
) -> Result<Self, Error>
pub fn new( config: Config, perf: Option<PerformanceConfig>, connection: Option<ConnectionConfig>, policy: Option<ReconnectPolicy>, size: usize, ) -> Result<Self, Error>
Create a new pool without connecting to the server.
See the builder interface for more information.
Sourcepub fn prefer_connected(&self, val: bool) -> bool
pub fn prefer_connected(&self, val: bool) -> bool
Set whether the client will use next_connected or next when routing commands among the pooled clients.
Sourcepub fn connect_pool(&self) -> Vec<ConnectHandle> ⓘ
pub fn connect_pool(&self) -> Vec<ConnectHandle> ⓘ
Sourcepub fn next_connected(&self) -> &Client
pub fn next_connected(&self) -> &Client
Read the next connected client that should run the next command.
Trait Implementations§
Source§impl AclInterface for Pool
Available on crate feature i-acl only.
impl AclInterface for Pool
i-acl only.Source§fn acl_setuser<S, V>(
&self,
username: S,
rules: V,
) -> impl Future<Output = FredResult<()>> + Send
fn acl_setuser<S, V>( &self, username: S, rules: V, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn acl_load(&self) -> impl Future<Output = FredResult<()>> + Send
fn acl_load(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn acl_save(&self) -> impl Future<Output = FredResult<()>> + Send
fn acl_save(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn acl_list<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_list<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn acl_users<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_users<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn acl_getuser<R, U>(
&self,
username: U,
) -> impl Future<Output = FredResult<R>> + Send
fn acl_getuser<R, U>( &self, username: U, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn acl_deluser<R, S>(
&self,
usernames: S,
) -> impl Future<Output = FredResult<R>> + Send
fn acl_deluser<R, S>( &self, usernames: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn acl_cat<R>(
&self,
category: Option<Str>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_cat<R>(
&self,
category: Option<Str>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn acl_genpass<R>(
&self,
bits: Option<u16>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_genpass<R>(
&self,
bits: Option<u16>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
bits, returning the password. Read moreSource§fn acl_whoami<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_whoami<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn acl_log_count<R>(
&self,
count: Option<u32>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn acl_log_count<R>(
&self,
count: Option<u32>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
count recent ACL security events. Read moreSource§fn acl_log_reset(&self) -> impl Future<Output = FredResult<()>> + Send
fn acl_log_reset(&self) -> impl Future<Output = FredResult<()>> + Send
Source§impl ClientInterface for Pool
Available on crate feature i-client only.
impl ClientInterface for Pool
i-client only.Source§fn client_id<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_id<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn connection_ids(&self) -> HashMap<Server, i64>
fn connection_ids(&self) -> HashMap<Server, i64>
Source§fn client_info<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_info<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn client_kill<R>(
&self,
filters: Vec<ClientKillFilter>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_kill<R>(
&self,
filters: Vec<ClientKillFilter>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn client_list<R, I>(
&self,
type: Option<ClientKillType>,
ids: Option<Vec<String>>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_list<R, I>(
&self,
type: Option<ClientKillType>,
ids: Option<Vec<String>>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn client_getname<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_getname<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn client_setname<S>(
&self,
name: S,
) -> impl Future<Output = FredResult<()>> + Send
fn client_setname<S>( &self, name: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn client_pause(
&self,
timeout: i64,
mode: Option<ClientPauseKind>,
) -> impl Future<Output = FredResult<()>> + Send
fn client_pause( &self, timeout: i64, mode: Option<ClientPauseKind>, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn client_unpause(&self) -> impl Future<Output = FredResult<()>> + Send
fn client_unpause(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn client_reply(
&self,
flag: ClientReplyFlag,
) -> impl Future<Output = FredResult<()>> + Send
fn client_reply( &self, flag: ClientReplyFlag, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn client_unblock<R, S>(
&self,
id: S,
flag: Option<ClientUnblockFlag>,
) -> impl Future<Output = FredResult<R>> + Send
fn client_unblock<R, S>( &self, id: S, flag: Option<ClientUnblockFlag>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn unblock_self(
&self,
flag: Option<ClientUnblockFlag>,
) -> impl Future<Output = FredResult<()>> + Send
fn unblock_self( &self, flag: Option<ClientUnblockFlag>, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn echo<R, M>(&self, message: M) -> impl Future<Output = FredResult<R>> + Send
fn echo<R, M>(&self, message: M) -> impl Future<Output = FredResult<R>> + Send
Source§fn client_tracking<R, T, P>(
&self,
toggle: T,
redirect: Option<i64>,
prefixes: P,
bcast: bool,
optin: bool,
optout: bool,
noloop: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn client_tracking<R, T, P>( &self, toggle: T, redirect: Option<i64>, prefixes: P, bcast: bool, optin: bool, optout: bool, noloop: bool, ) -> impl Future<Output = FredResult<R>> + Send
i-tracking only.Source§fn client_trackinginfo<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_trackinginfo<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
i-tracking only.Source§fn client_getredir<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_getredir<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
i-tracking only.Source§fn client_caching<R>(
&self,
enabled: bool,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn client_caching<R>(
&self,
enabled: bool,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
i-tracking only.Source§impl ClientLike for Pool
impl ClientLike for Pool
Source§fn update_perf_config(&self, config: PerformanceConfig)
fn update_perf_config(&self, config: PerformanceConfig)
Update the internal PerformanceConfig on each client in place with new values.
Source§fn active_connections(&self) -> Vec<Server>
fn active_connections(&self) -> Vec<Server>
Read the set of active connections across all clients in the pool.
This may contain duplicates when separate clients are connected to the same server.
Source§fn set_resolver(&self, resolver: Arc<dyn Resolve>) -> impl Future + Send
Available on crate feature dns only.
fn set_resolver(&self, resolver: Arc<dyn Resolve>) -> impl Future + Send
dns only.Override the DNS resolution logic for all clients in the pool.
Source§fn connect(&self) -> ConnectHandle
fn connect(&self) -> ConnectHandle
Connect each client to the server.
This function returns a JoinHandle to a task that drives all connections via join.
See connect_pool for a variation of this function that separates the connection tasks.
See init for an alternative shorthand.
Source§fn force_reconnection(&self) -> impl Future<Output = FredResult<()>> + Send
fn force_reconnection(&self) -> impl Future<Output = FredResult<()>> + Send
Force a reconnection to the server(s) for each client.
When running against a cluster this function will also refresh the cached cluster routing table.
Source§fn wait_for_connect(&self) -> impl Future<Output = FredResult<()>> + Send
fn wait_for_connect(&self) -> impl Future<Output = FredResult<()>> + Send
Wait for all the clients to connect to the server.
Source§fn init(&self) -> impl Future<Output = FredResult<ConnectHandle>> + Send
fn init(&self) -> impl Future<Output = FredResult<ConnectHandle>> + Send
Initialize a new routing and connection task for each client and wait for them to connect successfully.
The returned ConnectHandle refers to the task that drives the routing and connection layer for each client via join. It will not finish until the max reconnection count is reached.
Callers can also use connect and wait_for_connect separately if needed.
use fred::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Error> {
let pool = Builder::default_centralized().build_pool(5)?;
let connection_task = pool.init().await?;
// ...
pool.quit().await?;
connection_task.await?
}Source§fn quit(&self) -> impl Future<Output = FredResult<()>> + Send
fn quit(&self) -> impl Future<Output = FredResult<()>> + Send
Close the connection to the Redis server for each client. The returned future resolves when the command has been written to the socket, not when the connection has been fully closed. Some time after this future resolves the future returned by connect will resolve which indicates that the connection has been fully closed.
This function will also close all error, pubsub message, and reconnection event streams on all clients in the pool.
Source§fn client_config(&self) -> Config
fn client_config(&self) -> Config
Source§fn client_reconnect_policy(&self) -> Option<ReconnectPolicy>
fn client_reconnect_policy(&self) -> Option<ReconnectPolicy>
Source§fn connection_config(&self) -> &ConnectionConfig
fn connection_config(&self) -> &ConnectionConfig
Source§fn protocol_version(&self) -> RespVersion
fn protocol_version(&self) -> RespVersion
Source§fn has_reconnect_policy(&self) -> bool
fn has_reconnect_policy(&self) -> bool
Source§fn is_clustered(&self) -> bool
fn is_clustered(&self) -> bool
Source§fn uses_sentinels(&self) -> bool
fn uses_sentinels(&self) -> bool
Source§fn perf_config(&self) -> PerformanceConfig
fn perf_config(&self) -> PerformanceConfig
Source§fn state(&self) -> ClientState
fn state(&self) -> ClientState
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Source§fn server_version(&self) -> Option<Version>
fn server_version(&self) -> Option<Version>
Source§fn shutdown(
&self,
flags: Option<ShutdownFlags>,
) -> impl Future<Output = FredResult<()>> + Send
fn shutdown( &self, flags: Option<ShutdownFlags>, ) -> impl Future<Output = FredResult<()>> + Send
i-server only.Source§fn flushall<R>(&self, async: bool) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn flushall<R>(&self, async: bool) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn flushall_cluster(&self) -> impl Future<Output = FredResult<()>> + Send
fn flushall_cluster(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn ping<R>(
&self,
message: Option<String>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn ping<R>(
&self,
message: Option<String>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn info<R>(
&self,
section: Option<InfoKind>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn info<R>(
&self,
section: Option<InfoKind>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn custom<R, T>(
&self,
cmd: CustomCommand,
args: Vec<T>,
) -> impl Future<Output = FredResult<R>> + Send
fn custom<R, T>( &self, cmd: CustomCommand, args: Vec<T>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn custom_raw<T>(
&self,
cmd: CustomCommand,
args: Vec<T>,
) -> impl Future<Output = FredResult<Resp3Frame>> + Send
fn custom_raw<T>( &self, cmd: CustomCommand, args: Vec<T>, ) -> impl Future<Output = FredResult<Resp3Frame>> + Send
Source§fn with_options(&self, options: &Options) -> WithOptions<Self>
fn with_options(&self, options: &Options) -> WithOptions<Self>
Source§impl ClusterInterface for Pool
Available on crate feature i-cluster only.
impl ClusterInterface for Pool
i-cluster only.Source§fn cached_cluster_state(&self) -> Option<ClusterRouting>
fn cached_cluster_state(&self) -> Option<ClusterRouting>
Source§fn num_primary_cluster_nodes(&self) -> usize
fn num_primary_cluster_nodes(&self) -> usize
0 if the cluster state is not known.Source§fn sync_cluster(&self) -> impl Future<Output = Result<(), Error>> + Send
fn sync_cluster(&self) -> impl Future<Output = Result<(), Error>> + Send
Source§fn cluster_bumpepoch<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_bumpepoch<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_flushslots(&self) -> impl Future<Output = FredResult<()>> + Send
fn cluster_flushslots(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_myid<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_myid<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_nodes<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_nodes<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_saveconfig(&self) -> impl Future<Output = FredResult<()>> + Send
fn cluster_saveconfig(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_slots<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_slots<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_info<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_info<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_add_slots<S>(
&self,
slots: S,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_add_slots<S>( &self, slots: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_count_failure_reports<R, S>(
&self,
node_id: S,
) -> impl Future<Output = FredResult<R>> + Send
fn cluster_count_failure_reports<R, S>( &self, node_id: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn cluster_count_keys_in_slot<R>(
&self,
slot: u16,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_count_keys_in_slot<R>(
&self,
slot: u16,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_del_slots<S>(
&self,
slots: S,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_del_slots<S>( &self, slots: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_failover(
&self,
flag: Option<ClusterFailoverFlag>,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_failover( &self, flag: Option<ClusterFailoverFlag>, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_forget<S>(
&self,
node_id: S,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_forget<S>( &self, node_id: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_get_keys_in_slot<R>(
&self,
slot: u16,
count: u64,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn cluster_get_keys_in_slot<R>(
&self,
slot: u16,
count: u64,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn cluster_keyslot<R, K>(
&self,
key: K,
) -> impl Future<Output = FredResult<R>> + Send
fn cluster_keyslot<R, K>( &self, key: K, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn cluster_meet<S>(
&self,
ip: S,
port: u16,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_meet<S>( &self, ip: S, port: u16, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_replicate<S>(
&self,
node_id: S,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_replicate<S>( &self, node_id: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_replicas<R, S>(
&self,
node_id: S,
) -> impl Future<Output = FredResult<R>> + Send
fn cluster_replicas<R, S>( &self, node_id: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn cluster_reset(
&self,
mode: Option<ClusterResetFlag>,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_reset( &self, mode: Option<ClusterResetFlag>, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_set_config_epoch(
&self,
epoch: u64,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_set_config_epoch( &self, epoch: u64, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn cluster_setslot(
&self,
slot: u16,
state: ClusterSetSlotState,
) -> impl Future<Output = FredResult<()>> + Send
fn cluster_setslot( &self, slot: u16, state: ClusterSetSlotState, ) -> impl Future<Output = FredResult<()>> + Send
Source§impl ConfigInterface for Pool
Available on crate feature i-config only.
impl ConfigInterface for Pool
i-config only.Source§fn config_resetstat(&self) -> impl Future<Output = FredResult<()>> + Send
fn config_resetstat(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn config_rewrite(&self) -> impl Future<Output = FredResult<()>> + Send
fn config_rewrite(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn config_get<R, S>(
&self,
parameter: S,
) -> impl Future<Output = FredResult<R>> + Send
fn config_get<R, S>( &self, parameter: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn config_set<P, V>(
&self,
parameter: P,
value: V,
) -> impl Future<Output = FredResult<()>> + Send
fn config_set<P, V>( &self, parameter: P, value: V, ) -> impl Future<Output = FredResult<()>> + Send
Source§impl FunctionInterface for Pool
Available on crate feature i-scripts only.
impl FunctionInterface for Pool
i-scripts only.Source§fn fcall<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = FredResult<R>> + Send
fn fcall<R, F, K, V>( &self, func: F, keys: K, args: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn fcall_ro<R, F, K, V>(
&self,
func: F,
keys: K,
args: V,
) -> impl Future<Output = FredResult<R>> + Send
fn fcall_ro<R, F, K, V>( &self, func: F, keys: K, args: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_delete<R, S>(
&self,
library_name: S,
) -> impl Future<Output = FredResult<R>> + Send
fn function_delete<R, S>( &self, library_name: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_delete_cluster<S>(
&self,
library_name: S,
) -> impl Future<Output = FredResult<()>> + Send
fn function_delete_cluster<S>( &self, library_name: S, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn function_dump<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn function_dump<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn function_flush<R>(
&self,
async: bool,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn function_flush<R>(
&self,
async: bool,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn function_flush_cluster(
&self,
async: bool,
) -> impl Future<Output = FredResult<()>> + Send
fn function_flush_cluster( &self, async: bool, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn function_kill<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn function_kill<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn function_list<R, S>(
&self,
library_name: Option<S>,
withcode: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn function_list<R, S>( &self, library_name: Option<S>, withcode: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_load<R, S>(
&self,
replace: bool,
code: S,
) -> impl Future<Output = FredResult<R>> + Send
fn function_load<R, S>( &self, replace: bool, code: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_load_cluster<R, S>(
&self,
replace: bool,
code: S,
) -> impl Future<Output = FredResult<R>> + Send
fn function_load_cluster<R, S>( &self, replace: bool, code: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_restore<R, B, P>(
&self,
serialized: B,
policy: P,
) -> impl Future<Output = FredResult<R>> + Send
fn function_restore<R, B, P>( &self, serialized: B, policy: P, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn function_restore_cluster<B, P>(
&self,
serialized: B,
policy: P,
) -> impl Future<Output = FredResult<()>> + Send
fn function_restore_cluster<B, P>( &self, serialized: B, policy: P, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn function_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn function_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§impl GeoInterface for Pool
Available on crate feature i-geo only.
impl GeoInterface for Pool
i-geo only.Source§fn geoadd<R, K, V>(
&self,
key: K,
options: Option<SetOptions>,
changed: bool,
values: V,
) -> impl Future<Output = FredResult<R>> + Send
fn geoadd<R, K, V>( &self, key: K, options: Option<SetOptions>, changed: bool, values: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn geohash<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn geohash<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn geopos<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn geopos<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn geodist<R, K, S, D>(
&self,
key: K,
src: S,
dest: D,
unit: Option<GeoUnit>,
) -> impl Future<Output = FredResult<R>> + Send
fn geodist<R, K, S, D>( &self, key: K, src: S, dest: D, unit: Option<GeoUnit>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn georadius<R, K, P>(
&self,
key: K,
position: P,
radius: f64,
unit: GeoUnit,
withcoord: bool,
withdist: bool,
withhash: bool,
count: Option<(u64, Any)>,
ord: Option<SortOrder>,
store: Option<Key>,
storedist: Option<Key>,
) -> impl Future<Output = FredResult<R>> + Send
fn georadius<R, K, P>( &self, key: K, position: P, radius: f64, unit: GeoUnit, withcoord: bool, withdist: bool, withhash: bool, count: Option<(u64, Any)>, ord: Option<SortOrder>, store: Option<Key>, storedist: Option<Key>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn georadiusbymember<R, K, V>(
&self,
key: K,
member: V,
radius: f64,
unit: GeoUnit,
withcoord: bool,
withdist: bool,
withhash: bool,
count: Option<(u64, Any)>,
ord: Option<SortOrder>,
store: Option<Key>,
storedist: Option<Key>,
) -> impl Future<Output = FredResult<R>> + Send
fn georadiusbymember<R, K, V>( &self, key: K, member: V, radius: f64, unit: GeoUnit, withcoord: bool, withdist: bool, withhash: bool, count: Option<(u64, Any)>, ord: Option<SortOrder>, store: Option<Key>, storedist: Option<Key>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn geosearch<R, K>(
&self,
key: K,
from_member: Option<Value>,
from_lonlat: Option<GeoPosition>,
by_radius: Option<(f64, GeoUnit)>,
by_box: Option<(f64, f64, GeoUnit)>,
ord: Option<SortOrder>,
count: Option<(u64, Any)>,
withcoord: bool,
withdist: bool,
withhash: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn geosearch<R, K>( &self, key: K, from_member: Option<Value>, from_lonlat: Option<GeoPosition>, by_radius: Option<(f64, GeoUnit)>, by_box: Option<(f64, f64, GeoUnit)>, ord: Option<SortOrder>, count: Option<(u64, Any)>, withcoord: bool, withdist: bool, withhash: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn geosearchstore<R, D, S>(
&self,
dest: D,
source: S,
from_member: Option<Value>,
from_lonlat: Option<GeoPosition>,
by_radius: Option<(f64, GeoUnit)>,
by_box: Option<(f64, f64, GeoUnit)>,
ord: Option<SortOrder>,
count: Option<(u64, Any)>,
storedist: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn geosearchstore<R, D, S>( &self, dest: D, source: S, from_member: Option<Value>, from_lonlat: Option<GeoPosition>, by_radius: Option<(f64, GeoUnit)>, by_box: Option<(f64, f64, GeoUnit)>, ord: Option<SortOrder>, count: Option<(u64, Any)>, storedist: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§impl HashesInterface for Pool
Available on crate feature i-hashes only.
impl HashesInterface for Pool
i-hashes only.Source§fn hgetall<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn hgetall<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn hdel<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hdel<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn hexists<R, K, F>(
&self,
key: K,
field: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hexists<R, K, F>( &self, key: K, field: F, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn hincrby<R, K, F>(
&self,
key: K,
field: F,
increment: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn hincrby<R, K, F>( &self, key: K, field: F, increment: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn hincrbyfloat<R, K, F>(
&self,
key: K,
field: F,
increment: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn hincrbyfloat<R, K, F>( &self, key: K, field: F, increment: f64, ) -> impl Future<Output = FredResult<R>> + Send
field of a hash stored at key, and representing a floating point number, by the
specified increment. Read moreSource§fn hkeys<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn hkeys<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn hlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn hlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn hmset<R, K, V>(
&self,
key: K,
values: V,
) -> impl Future<Output = FredResult<R>> + Send
fn hmset<R, K, V>( &self, key: K, values: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn hset<R, K, V>(
&self,
key: K,
values: V,
) -> impl Future<Output = FredResult<R>> + Send
fn hset<R, K, V>( &self, key: K, values: V, ) -> impl Future<Output = FredResult<R>> + Send
key to their provided values. Read moreSource§fn hsetnx<R, K, F, V>(
&self,
key: K,
field: F,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn hsetnx<R, K, F, V>( &self, key: K, field: F, value: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn hrandfield<R, K>(
&self,
key: K,
count: Option<(i64, bool)>,
) -> impl Future<Output = FredResult<R>> + Send
fn hrandfield<R, K>( &self, key: K, count: Option<(i64, bool)>, ) -> impl Future<Output = FredResult<R>> + Send
key argument, return a random field from the hash value stored at key. Read moreSource§fn hstrlen<R, K, F>(
&self,
key: K,
field: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hstrlen<R, K, F>( &self, key: K, field: F, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn hvals<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn hvals<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn httl<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn httl<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hexpire<R, K, F>(
&self,
key: K,
seconds: i64,
options: Option<ExpireOptions>,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hexpire<R, K, F>( &self, key: K, seconds: i64, options: Option<ExpireOptions>, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hexpire_at<R, K, F>(
&self,
key: K,
time: i64,
options: Option<ExpireOptions>,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hexpire_at<R, K, F>( &self, key: K, time: i64, options: Option<ExpireOptions>, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hexpire_time<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hexpire_time<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hpttl<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hpttl<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hpexpire<R, K, F>(
&self,
key: K,
milliseconds: i64,
options: Option<ExpireOptions>,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hpexpire<R, K, F>( &self, key: K, milliseconds: i64, options: Option<ExpireOptions>, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hpexpire_at<R, K, F>(
&self,
key: K,
time: i64,
options: Option<ExpireOptions>,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hpexpire_at<R, K, F>( &self, key: K, time: i64, options: Option<ExpireOptions>, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hpexpire_time<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hpexpire_time<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§fn hpersist<R, K, F>(
&self,
key: K,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn hpersist<R, K, F>( &self, key: K, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
i-hexpire only.Source§impl HeartbeatInterface for Pool
impl HeartbeatInterface for Pool
Source§fn enable_heartbeat(
&self,
interval: Duration,
break_on_error: bool,
) -> impl Future<Output = FredResult<()>> + Send
fn enable_heartbeat( &self, interval: Duration, break_on_error: bool, ) -> impl Future<Output = FredResult<()>> + Send
Source§impl HyperloglogInterface for Pool
Available on crate feature i-hyperloglog only.
impl HyperloglogInterface for Pool
i-hyperloglog only.Source§fn pfadd<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = FredResult<R>> + Send
fn pfadd<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn pfcount<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn pfcount<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§impl KeysInterface for Pool
Available on crate feature i-keys only.
impl KeysInterface for Pool
i-keys only.Source§fn watch<K>(&self, keys: K) -> impl Future<Output = FredResult<()>> + Send
fn watch<K>(&self, keys: K) -> impl Future<Output = FredResult<()>> + Send
Source§fn unwatch(&self) -> impl Future<Output = FredResult<()>> + Send
fn unwatch(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn randomkey<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn randomkey<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn copy<R, S, D>(
&self,
source: S,
destination: D,
db: Option<u8>,
replace: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn copy<R, S, D>( &self, source: S, destination: D, db: Option<u8>, replace: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn dump<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn dump<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key in a Redis-specific format and return it as bulk string. Read moreSource§fn type<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn type<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn restore<R, K>(
&self,
key: K,
ttl: i64,
serialized: Value,
replace: bool,
absttl: bool,
idletime: Option<i64>,
frequency: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn restore<R, K>( &self, key: K, ttl: i64, serialized: Value, replace: bool, absttl: bool, idletime: Option<i64>, frequency: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn set<R, K, V>(
&self,
key: K,
value: V,
expire: Option<Expiration>,
options: Option<SetOptions>,
get: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn set<R, K, V>( &self, key: K, value: V, expire: Option<Expiration>, options: Option<SetOptions>, get: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn get<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn get<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn getrange<R, K>(
&self,
key: K,
start: usize,
end: usize,
) -> impl Future<Output = FredResult<R>> + Send
fn getrange<R, K>( &self, key: K, start: usize, end: usize, ) -> impl Future<Output = FredResult<R>> + Send
key with offsets start and end (both inclusive). Read moreSource§fn setrange<R, K, V>(
&self,
key: K,
offset: u32,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn setrange<R, K, V>( &self, key: K, offset: u32, value: V, ) -> impl Future<Output = FredResult<R>> + Send
key, starting at the specified offset, for the entire length of
value. Read moreSource§fn getdel<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn getdel<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn strlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn strlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn del<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn del<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn unlink<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn unlink<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn rename<R, S, D>(
&self,
source: S,
destination: D,
) -> impl Future<Output = FredResult<R>> + Send
fn rename<R, S, D>( &self, source: S, destination: D, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn renamenx<R, S, D>(
&self,
source: S,
destination: D,
) -> impl Future<Output = FredResult<R>> + Send
fn renamenx<R, S, D>( &self, source: S, destination: D, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn mget<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn mget<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn mset<V>(&self, values: V) -> impl Future<Output = FredResult<()>> + Send
fn mset<V>(&self, values: V) -> impl Future<Output = FredResult<()>> + Send
Source§fn msetnx<R, V>(&self, values: V) -> impl Future<Output = FredResult<R>> + Send
fn msetnx<R, V>(&self, values: V) -> impl Future<Output = FredResult<R>> + Send
Source§fn incr<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn incr<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key by one. If the key does not exist, it is set to 0 before performing the
operation. Read moreSource§fn incr_by<R, K>(
&self,
key: K,
val: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn incr_by<R, K>( &self, key: K, val: i64, ) -> impl Future<Output = FredResult<R>> + Send
key by val. If the key does not exist, it is set to 0 before performing the
operation. Read moreSource§fn incr_by_float<R, K>(
&self,
key: K,
val: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn incr_by_float<R, K>( &self, key: K, val: f64, ) -> impl Future<Output = FredResult<R>> + Send
val. If the key does not exist, it
is set to 0 before performing the operation. Read moreSource§fn decr<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn decr<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key by one. If the key does not exist, it is set to 0 before performing the
operation. Read moreSource§fn decr_by<R, K>(
&self,
key: K,
val: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn decr_by<R, K>( &self, key: K, val: i64, ) -> impl Future<Output = FredResult<R>> + Send
key by val. If the key does not exist, it is set to 0 before performing the
operation. Read moreSource§fn ttl<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn ttl<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn pttl<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn pttl<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn persist<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn persist<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn expire<R, K>(
&self,
key: K,
seconds: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = FredResult<R>> + Send
fn expire<R, K>( &self, key: K, seconds: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn expire_at<R, K>(
&self,
key: K,
timestamp: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = FredResult<R>> + Send
fn expire_at<R, K>( &self, key: K, timestamp: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn expire_time<R, K>(
&self,
key: K,
) -> impl Future<Output = FredResult<R>> + Send
fn expire_time<R, K>( &self, key: K, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn pexpire<R, K>(
&self,
key: K,
milliseconds: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = FredResult<R>> + Send
fn pexpire<R, K>( &self, key: K, milliseconds: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn pexpire_at<R, K>(
&self,
key: K,
timestamp: i64,
options: Option<ExpireOptions>,
) -> impl Future<Output = FredResult<R>> + Send
fn pexpire_at<R, K>( &self, key: K, timestamp: i64, options: Option<ExpireOptions>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn pexpire_time<R, K>(
&self,
key: K,
) -> impl Future<Output = FredResult<R>> + Send
fn pexpire_time<R, K>( &self, key: K, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn exists<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn exists<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
keys arguments. Read moreSource§impl ListInterface for Pool
Available on crate feature i-lists only.
impl ListInterface for Pool
i-lists only.Source§fn blmpop<R, K>(
&self,
timeout: f64,
keys: K,
direction: LMoveDirection,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn blmpop<R, K>( &self, timeout: f64, keys: K, direction: LMoveDirection, count: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn blpop<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn blpop<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn brpop<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn brpop<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn brpoplpush<R, S, D>(
&self,
source: S,
destination: D,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn brpoplpush<R, S, D>( &self, source: S, destination: D, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn blmove<R, S, D>(
&self,
source: S,
destination: D,
source_direction: LMoveDirection,
destination_direction: LMoveDirection,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn blmove<R, S, D>( &self, source: S, destination: D, source_direction: LMoveDirection, destination_direction: LMoveDirection, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn lmpop<R, K>(
&self,
keys: K,
direction: LMoveDirection,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn lmpop<R, K>( &self, keys: K, direction: LMoveDirection, count: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn lindex<R, K>(
&self,
key: K,
index: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn lindex<R, K>( &self, key: K, index: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn linsert<R, K, P, V>(
&self,
key: K,
location: ListLocation,
pivot: P,
element: V,
) -> impl Future<Output = FredResult<R>> + Send
fn linsert<R, K, P, V>( &self, key: K, location: ListLocation, pivot: P, element: V, ) -> impl Future<Output = FredResult<R>> + Send
pivot. Read moreSource§fn llen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn llen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn lpop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn lpop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn lpos<R, K, V>(
&self,
key: K,
element: V,
rank: Option<i64>,
count: Option<i64>,
maxlen: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn lpos<R, K, V>( &self, key: K, element: V, rank: Option<i64>, count: Option<i64>, maxlen: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn lpush<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = FredResult<R>> + Send
fn lpush<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn lpushx<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = FredResult<R>> + Send
fn lpushx<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = FredResult<R>> + Send
key, only if key already exists and holds a list. Read moreSource§fn lrange<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn lrange<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn lrem<R, K, V>(
&self,
key: K,
count: i64,
element: V,
) -> impl Future<Output = FredResult<R>> + Send
fn lrem<R, K, V>( &self, key: K, count: i64, element: V, ) -> impl Future<Output = FredResult<R>> + Send
count occurrences of elements equal to element from the list stored at key. Read moreSource§fn lset<R, K, V>(
&self,
key: K,
index: i64,
element: V,
) -> impl Future<Output = FredResult<R>> + Send
fn lset<R, K, V>( &self, key: K, index: i64, element: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ltrim<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn ltrim<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn rpop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn rpop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn rpoplpush<R, S, D>(
&self,
source: S,
dest: D,
) -> impl Future<Output = FredResult<R>> + Send
fn rpoplpush<R, S, D>( &self, source: S, dest: D, ) -> impl Future<Output = FredResult<R>> + Send
source, and pushes the element at
the first element (head) of the list stored at destination. Read moreSource§fn lmove<R, S, D>(
&self,
source: S,
dest: D,
source_direction: LMoveDirection,
dest_direction: LMoveDirection,
) -> impl Future<Output = FredResult<R>> + Send
fn lmove<R, S, D>( &self, source: S, dest: D, source_direction: LMoveDirection, dest_direction: LMoveDirection, ) -> impl Future<Output = FredResult<R>> + Send
source, and pushes the element at the first/last element (head/tail depending on the
destination direction argument) of the list stored at destination. Read moreSource§fn rpush<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = FredResult<R>> + Send
fn rpush<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn rpushx<R, K, V>(
&self,
key: K,
elements: V,
) -> impl Future<Output = FredResult<R>> + Send
fn rpushx<R, K, V>( &self, key: K, elements: V, ) -> impl Future<Output = FredResult<R>> + Send
key, only if key already exists and holds a list. Read moreSource§fn sort<R, K, S>(
&self,
key: K,
by: Option<Str>,
limit: Option<Limit>,
get: S,
order: Option<SortOrder>,
alpha: bool,
store: Option<Key>,
) -> impl Future<Output = FredResult<R>> + Send
fn sort<R, K, S>( &self, key: K, by: Option<Str>, limit: Option<Limit>, get: S, order: Option<SortOrder>, alpha: bool, store: Option<Key>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn sort_ro<R, K, S>(
&self,
key: K,
by: Option<Str>,
limit: Option<Limit>,
get: S,
order: Option<SortOrder>,
alpha: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn sort_ro<R, K, S>( &self, key: K, by: Option<Str>, limit: Option<Limit>, get: S, order: Option<SortOrder>, alpha: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§impl LuaInterface for Pool
Available on crate feature i-scripts only.
impl LuaInterface for Pool
i-scripts only.Source§fn script_load<R, S>(
&self,
script: S,
) -> impl Future<Output = FredResult<R>> + Send
fn script_load<R, S>( &self, script: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn script_kill(&self) -> impl Future<Output = FredResult<()>> + Send
fn script_kill(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn script_kill_cluster(&self) -> impl Future<Output = FredResult<()>> + Send
fn script_kill_cluster(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn script_flush(
&self,
async: bool,
) -> impl Future<Output = FredResult<()>> + Send
fn script_flush( &self, async: bool, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn script_flush_cluster(
&self,
async: bool,
) -> impl Future<Output = FredResult<()>> + Send
fn script_flush_cluster( &self, async: bool, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn script_exists<R, H>(
&self,
hashes: H,
) -> impl Future<Output = FredResult<R>> + Send
fn script_exists<R, H>( &self, hashes: H, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn script_debug(
&self,
flag: ScriptDebugFlag,
) -> impl Future<Output = FredResult<()>> + Send
fn script_debug( &self, flag: ScriptDebugFlag, ) -> impl Future<Output = FredResult<()>> + Send
Source§impl MemoryInterface for Pool
Available on crate feature i-memory only.
impl MemoryInterface for Pool
i-memory only.Source§fn memory_doctor<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn memory_doctor<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn memory_malloc_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn memory_malloc_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn memory_purge(&self) -> impl Future<Output = FredResult<()>> + Send
fn memory_purge(&self) -> impl Future<Output = FredResult<()>> + Send
Source§fn memory_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn memory_stats<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§impl RediSearchInterface for Pool
Available on crate feature i-redisearch only.
impl RediSearchInterface for Pool
i-redisearch only.Source§fn ft_list<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn ft_list<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn ft_aggregate<R, I, Q>(
&self,
index: I,
query: Q,
options: FtAggregateOptions,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_aggregate<R, I, Q>( &self, index: I, query: Q, options: FtAggregateOptions, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_search<R, I, Q>(
&self,
index: I,
query: Q,
options: FtSearchOptions,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_search<R, I, Q>( &self, index: I, query: Q, options: FtSearchOptions, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_create<R, I>(
&self,
index: I,
options: FtCreateOptions,
schema: Vec<SearchSchema>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_create<R, I>( &self, index: I, options: FtCreateOptions, schema: Vec<SearchSchema>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_alter<R, I>(
&self,
index: I,
options: FtAlterOptions,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_alter<R, I>( &self, index: I, options: FtAlterOptions, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_aliasadd<R, A, I>(
&self,
alias: A,
index: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_aliasadd<R, A, I>( &self, alias: A, index: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_aliasdel<R, A>(
&self,
alias: A,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_aliasdel<R, A>( &self, alias: A, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_aliasupdate<R, A, I>(
&self,
alias: A,
index: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_aliasupdate<R, A, I>( &self, alias: A, index: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_config_get<R, S>(
&self,
option: S,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_config_get<R, S>( &self, option: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_config_set<R, S, V>(
&self,
option: S,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_config_set<R, S, V>( &self, option: S, value: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_cursor_del<R, I, C>(
&self,
index: I,
cursor: C,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_cursor_del<R, I, C>( &self, index: I, cursor: C, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_cursor_read<R, I, C>(
&self,
index: I,
cursor: C,
count: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_cursor_read<R, I, C>( &self, index: I, cursor: C, count: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_dictadd<R, D, S>(
&self,
dict: D,
terms: S,
) -> impl Future<Output = FredResult<R>>
fn ft_dictadd<R, D, S>( &self, dict: D, terms: S, ) -> impl Future<Output = FredResult<R>>
Source§fn ft_dictdel<R, D, S>(
&self,
dict: D,
terms: S,
) -> impl Future<Output = FredResult<R>>
fn ft_dictdel<R, D, S>( &self, dict: D, terms: S, ) -> impl Future<Output = FredResult<R>>
Source§fn ft_dictdump<R, D>(&self, dict: D) -> impl Future<Output = FredResult<R>>
fn ft_dictdump<R, D>(&self, dict: D) -> impl Future<Output = FredResult<R>>
Source§fn ft_dropindex<R, I>(
&self,
index: I,
dd: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_dropindex<R, I>( &self, index: I, dd: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_explain<R, I, Q>(
&self,
index: I,
query: Q,
dialect: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_explain<R, I, Q>( &self, index: I, query: Q, dialect: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_info<R, I>(&self, index: I) -> impl Future<Output = FredResult<R>> + Send
fn ft_info<R, I>(&self, index: I) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_spellcheck<R, I, Q>(
&self,
index: I,
query: Q,
distance: Option<u8>,
terms: Option<SpellcheckTerms>,
dialect: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_spellcheck<R, I, Q>( &self, index: I, query: Q, distance: Option<u8>, terms: Option<SpellcheckTerms>, dialect: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_sugadd<R, K, S>(
&self,
key: K,
string: S,
score: f64,
incr: bool,
payload: Option<Bytes>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_sugadd<R, K, S>( &self, key: K, string: S, score: f64, incr: bool, payload: Option<Bytes>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_sugdel<R, K, S>(
&self,
key: K,
string: S,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_sugdel<R, K, S>( &self, key: K, string: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_sugget<R, K, P>(
&self,
key: K,
prefix: P,
fuzzy: bool,
withscores: bool,
withpayloads: bool,
max: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_sugget<R, K, P>( &self, key: K, prefix: P, fuzzy: bool, withscores: bool, withpayloads: bool, max: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_suglen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn ft_suglen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_syndump<R, I>(
&self,
index: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_syndump<R, I>( &self, index: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ft_synupdate<R, I, S, T>(
&self,
index: I,
synonym_group_id: S,
skipinitialscan: bool,
terms: T,
) -> impl Future<Output = FredResult<R>> + Send
fn ft_synupdate<R, I, S, T>( &self, index: I, synonym_group_id: S, skipinitialscan: bool, terms: T, ) -> impl Future<Output = FredResult<R>> + Send
Source§impl RedisJsonInterface for Pool
Available on crate feature i-redis-json only.
impl RedisJsonInterface for Pool
i-redis-json only.Source§fn json_arrappend<R, K, P, V>(
&self,
key: K,
path: P,
values: Vec<V>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrappend<R, K, P, V>( &self, key: K, path: P, values: Vec<V>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_arrindex<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
start: Option<i64>,
stop: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrindex<R, K, P, V>( &self, key: K, path: P, value: V, start: Option<i64>, stop: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_arrinsert<R, K, P, V>(
&self,
key: K,
path: P,
index: i64,
values: Vec<V>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrinsert<R, K, P, V>( &self, key: K, path: P, index: i64, values: Vec<V>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_arrlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_arrpop<R, K, P>(
&self,
key: K,
path: Option<P>,
index: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrpop<R, K, P>( &self, key: K, path: Option<P>, index: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_arrtrim<R, K, P>(
&self,
key: K,
path: P,
start: i64,
stop: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn json_arrtrim<R, K, P>( &self, key: K, path: P, start: i64, stop: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_clear<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_clear<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_debug_memory<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_debug_memory<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_del<R, K, P>(
&self,
key: K,
path: P,
) -> impl Future<Output = FredResult<R>> + Send
fn json_del<R, K, P>( &self, key: K, path: P, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_get<R, K, I, N, S, P>(
&self,
key: K,
indent: Option<I>,
newline: Option<N>,
space: Option<S>,
paths: P,
) -> impl Future<Output = FredResult<R>> + Send
fn json_get<R, K, I, N, S, P>( &self, key: K, indent: Option<I>, newline: Option<N>, space: Option<S>, paths: P, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_merge<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn json_merge<R, K, P, V>( &self, key: K, path: P, value: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_mget<R, K, P>(
&self,
keys: K,
path: P,
) -> impl Future<Output = FredResult<R>> + Send
fn json_mget<R, K, P>( &self, keys: K, path: P, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_mset<R, K, P, V>(
&self,
values: Vec<(K, P, V)>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_mset<R, K, P, V>( &self, values: Vec<(K, P, V)>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_numincrby<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn json_numincrby<R, K, P, V>( &self, key: K, path: P, value: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_objkeys<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_objkeys<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_objlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_objlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_resp<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_resp<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_set<R, K, P, V>(
&self,
key: K,
path: P,
value: V,
options: Option<SetOptions>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_set<R, K, P, V>( &self, key: K, path: P, value: V, options: Option<SetOptions>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_strappend<R, K, P, V>(
&self,
key: K,
path: Option<P>,
value: V,
) -> impl Future<Output = FredResult<R>> + Send
fn json_strappend<R, K, P, V>( &self, key: K, path: Option<P>, value: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_strlen<R, K, P>(
&self,
key: K,
path: Option<P>,
) -> impl Future<Output = FredResult<R>> + Send
fn json_strlen<R, K, P>( &self, key: K, path: Option<P>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn json_toggle<R, K, P>(
&self,
key: K,
path: P,
) -> impl Future<Output = FredResult<R>> + Send
fn json_toggle<R, K, P>( &self, key: K, path: P, ) -> impl Future<Output = FredResult<R>> + Send
Source§impl ServerInterface for Pool
Available on crate feature i-server only.
impl ServerInterface for Pool
i-server only.Source§fn bgrewriteaof<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn bgrewriteaof<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn bgsave<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn bgsave<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn dbsize<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn dbsize<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn select<I>(&self, index: I) -> impl Future<Output = FredResult<()>> + Send
fn select<I>(&self, index: I) -> impl Future<Output = FredResult<()>> + Send
Source§fn failover(
&self,
to: Option<(String, u16)>,
force: bool,
abort: bool,
timeout: Option<u32>,
) -> impl Future<Output = FredResult<()>> + Send
fn failover( &self, to: Option<(String, u16)>, force: bool, abort: bool, timeout: Option<u32>, ) -> impl Future<Output = FredResult<()>> + Send
Source§fn lastsave<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn lastsave<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn wait<R>(
&self,
numreplicas: i64,
timeout: i64,
) -> impl Future<Output = Result<R, Error>> + Sendwhere
R: FromValue,
fn wait<R>(
&self,
numreplicas: i64,
timeout: i64,
) -> impl Future<Output = Result<R, Error>> + Sendwhere
R: FromValue,
Source§fn sentinel_primary(&self) -> Option<Server>
fn sentinel_primary(&self) -> Option<Server>
Source§impl SetsInterface for Pool
Available on crate feature i-sets only.
impl SetsInterface for Pool
i-sets only.Source§fn sadd<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn sadd<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn scard<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn scard<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn sdiff<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn sdiff<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn sdiffstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = FredResult<R>> + Send
fn sdiffstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = FredResult<R>> + Send
destination. Read moreSource§fn sinter<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn sinter<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn sinterstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = FredResult<R>> + Send
fn sinterstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = FredResult<R>> + Send
destination. Read moreSource§fn sismember<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = FredResult<R>> + Send
fn sismember<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn smismember<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn smismember<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn smembers<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn smembers<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn smove<R, S, D, V>(
&self,
source: S,
dest: D,
member: V,
) -> impl Future<Output = FredResult<R>> + Send
fn smove<R, S, D, V>( &self, source: S, dest: D, member: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn spop<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn spop<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn srandmember<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn srandmember<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn srem<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn srem<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn sunion<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
fn sunion<R, K>(&self, keys: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn sunionstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = FredResult<R>> + Send
fn sunionstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = FredResult<R>> + Send
destination. Read moreSource§impl SlowlogInterface for Pool
Available on crate feature i-slowlog only.
impl SlowlogInterface for Pool
i-slowlog only.Source§fn slowlog_get<R>(
&self,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn slowlog_get<R>(
&self,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn slowlog_length<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
fn slowlog_length<R>(&self) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
Source§fn slowlog_reset(&self) -> impl Future<Output = FredResult<()>> + Send
fn slowlog_reset(&self) -> impl Future<Output = FredResult<()>> + Send
Source§impl SortedSetsInterface for Pool
Available on crate feature i-sorted-sets only.
impl SortedSetsInterface for Pool
i-sorted-sets only.Source§fn bzmpop<R, K>(
&self,
timeout: f64,
keys: K,
sort: ZCmp,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn bzmpop<R, K>( &self, timeout: f64, keys: K, sort: ZCmp, count: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn bzpopmin<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn bzpopmin<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn bzpopmax<R, K>(
&self,
keys: K,
timeout: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn bzpopmax<R, K>( &self, keys: K, timeout: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zadd<R, K, V>(
&self,
key: K,
options: Option<SetOptions>,
ordering: Option<Ordering>,
changed: bool,
incr: bool,
values: V,
) -> impl Future<Output = FredResult<R>> + Send
fn zadd<R, K, V>( &self, key: K, options: Option<SetOptions>, ordering: Option<Ordering>, changed: bool, incr: bool, values: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zcard<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn zcard<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zcount<R, K>(
&self,
key: K,
min: f64,
max: f64,
) -> impl Future<Output = FredResult<R>> + Send
fn zcount<R, K>( &self, key: K, min: f64, max: f64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zdiff<R, K>(
&self,
keys: K,
withscores: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zdiff<R, K>( &self, keys: K, withscores: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zdiffstore<R, D, K>(
&self,
dest: D,
keys: K,
) -> impl Future<Output = FredResult<R>> + Send
fn zdiffstore<R, D, K>( &self, dest: D, keys: K, ) -> impl Future<Output = FredResult<R>> + Send
destination. Read moreSource§fn zincrby<R, K, V>(
&self,
key: K,
increment: f64,
member: V,
) -> impl Future<Output = FredResult<R>> + Send
fn zincrby<R, K, V>( &self, key: K, increment: f64, member: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zinter<R, K, W>(
&self,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
withscores: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zinter<R, K, W>( &self, keys: K, weights: W, aggregate: Option<AggregateOptions>, withscores: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zinterstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
D: Into<Key> + Send,
K: Into<MultipleKeys> + Send,
W: Into<MultipleWeights> + Send,
fn zinterstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
D: Into<Key> + Send,
K: Into<MultipleKeys> + Send,
W: Into<MultipleWeights> + Send,
destination. Read moreSource§fn zlexcount<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = FredResult<R>> + Send
fn zlexcount<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zpopmax<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn zpopmax<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zpopmin<R, K>(
&self,
key: K,
count: Option<usize>,
) -> impl Future<Output = FredResult<R>> + Send
fn zpopmin<R, K>( &self, key: K, count: Option<usize>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zmpop<R, K>(
&self,
keys: K,
sort: ZCmp,
count: Option<i64>,
) -> impl Future<Output = FredResult<R>> + Send
fn zmpop<R, K>( &self, keys: K, sort: ZCmp, count: Option<i64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zrandmember<R, K>(
&self,
key: K,
count: Option<(i64, bool)>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrandmember<R, K>( &self, key: K, count: Option<(i64, bool)>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zrangestore<R, D, S, M, N>(
&self,
dest: D,
source: S,
min: M,
max: N,
sort: Option<ZSort>,
rev: bool,
limit: Option<Limit>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrangestore<R, D, S, M, N>( &self, dest: D, source: S, min: M, max: N, sort: Option<ZSort>, rev: bool, limit: Option<Limit>, ) -> impl Future<Output = FredResult<R>> + Send
destination key. Read moreSource§fn zrange<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
sort: Option<ZSort>,
rev: bool,
limit: Option<Limit>,
withscores: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zrange<R, K, M, N>( &self, key: K, min: M, max: N, sort: Option<ZSort>, rev: bool, limit: Option<Limit>, withscores: bool, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zrangebylex<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
limit: Option<Limit>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrangebylex<R, K, M, N>( &self, key: K, min: M, max: N, limit: Option<Limit>, ) -> impl Future<Output = FredResult<R>> + Send
key with a value between min and max. Read moreSource§fn zrevrangebylex<R, K, M, N>(
&self,
key: K,
max: M,
min: N,
limit: Option<Limit>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrevrangebylex<R, K, M, N>( &self, key: K, max: M, min: N, limit: Option<Limit>, ) -> impl Future<Output = FredResult<R>> + Send
key with a value between max and min. Read moreSource§fn zrangebyscore<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
withscores: bool,
limit: Option<Limit>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrangebyscore<R, K, M, N>( &self, key: K, min: M, max: N, withscores: bool, limit: Option<Limit>, ) -> impl Future<Output = FredResult<R>> + Send
min and max (including elements
with score equal to min or max). Read moreSource§fn zrevrangebyscore<R, K, M, N>(
&self,
key: K,
max: M,
min: N,
withscores: bool,
limit: Option<Limit>,
) -> impl Future<Output = FredResult<R>> + Send
fn zrevrangebyscore<R, K, M, N>( &self, key: K, max: M, min: N, withscores: bool, limit: Option<Limit>, ) -> impl Future<Output = FredResult<R>> + Send
key with a score between max and min (including
elements with score equal to max or min). Read moreSource§fn zrank<R, K, V>(
&self,
key: K,
member: V,
withscore: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zrank<R, K, V>( &self, key: K, member: V, withscore: bool, ) -> impl Future<Output = FredResult<R>> + Send
key, with the scores ordered from low to high. Read moreSource§fn zrem<R, K, V>(
&self,
key: K,
members: V,
) -> impl Future<Output = FredResult<R>> + Send
fn zrem<R, K, V>( &self, key: K, members: V, ) -> impl Future<Output = FredResult<R>> + Send
key. Non existing members are ignored. Read moreSource§fn zremrangebylex<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = FredResult<R>> + Send
fn zremrangebylex<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = FredResult<R>> + Send
key between the lexicographical range
specified by min and max. Read moreSource§fn zremrangebyrank<R, K>(
&self,
key: K,
start: i64,
stop: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn zremrangebyrank<R, K>( &self, key: K, start: i64, stop: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zremrangebyscore<R, K, M, N>(
&self,
key: K,
min: M,
max: N,
) -> impl Future<Output = FredResult<R>> + Send
fn zremrangebyscore<R, K, M, N>( &self, key: K, min: M, max: N, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zrevrange<R, K>(
&self,
key: K,
start: i64,
stop: i64,
withscores: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zrevrange<R, K>( &self, key: K, start: i64, stop: i64, withscores: bool, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn zrevrank<R, K, V>(
&self,
key: K,
member: V,
withscore: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zrevrank<R, K, V>( &self, key: K, member: V, withscore: bool, ) -> impl Future<Output = FredResult<R>> + Send
member in the sorted set stored at key, with the scores ordered from high to low. Read moreSource§fn zscore<R, K, V>(
&self,
key: K,
member: V,
) -> impl Future<Output = FredResult<R>> + Send
fn zscore<R, K, V>( &self, key: K, member: V, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zunion<R, K, W>(
&self,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
withscores: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn zunion<R, K, W>( &self, keys: K, weights: W, aggregate: Option<AggregateOptions>, withscores: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn zunionstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
D: Into<Key> + Send,
K: Into<MultipleKeys> + Send,
W: Into<MultipleWeights> + Send,
fn zunionstore<R, D, K, W>(
&self,
dest: D,
keys: K,
weights: W,
aggregate: Option<AggregateOptions>,
) -> impl Future<Output = FredResult<R>> + Sendwhere
R: FromValue,
D: Into<Key> + Send,
K: Into<MultipleKeys> + Send,
W: Into<MultipleWeights> + Send,
destination. Read moreSource§impl StreamsInterface for Pool
Available on crate feature i-streams only.
impl StreamsInterface for Pool
i-streams only.Source§fn xinfo_consumers<R, K, S>(
&self,
key: K,
groupname: S,
) -> impl Future<Output = FredResult<R>> + Send
fn xinfo_consumers<R, K, S>( &self, key: K, groupname: S, ) -> impl Future<Output = FredResult<R>> + Send
groupname consumer group of the stream stored at
key. Read moreSource§fn xinfo_groups<R, K>(
&self,
key: K,
) -> impl Future<Output = FredResult<R>> + Send
fn xinfo_groups<R, K>( &self, key: K, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn xinfo_stream<R, K>(
&self,
key: K,
full: bool,
count: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn xinfo_stream<R, K>( &self, key: K, full: bool, count: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
key. Read moreSource§fn xadd<R, K, C, I, F>(
&self,
key: K,
nomkstream: bool,
cap: C,
id: I,
fields: F,
) -> impl Future<Output = FredResult<R>> + Send
fn xadd<R, K, C, I, F>( &self, key: K, nomkstream: bool, cap: C, id: I, fields: F, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xtrim<R, K, C>(
&self,
key: K,
cap: C,
) -> impl Future<Output = FredResult<R>> + Send
fn xtrim<R, K, C>( &self, key: K, cap: C, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xdel<R, K, S>(
&self,
key: K,
ids: S,
) -> impl Future<Output = FredResult<R>> + Send
fn xdel<R, K, S>( &self, key: K, ids: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xrange_values<Ri, Rk, Rv, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
fn xrange_values<Ri, Rk, Rv, K, S, E>( &self, key: K, start: S, end: E, count: Option<u64>, ) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
Source§fn xrange<R, K, S, E>(
&self,
key: K,
start: S,
end: E,
count: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn xrange<R, K, S, E>( &self, key: K, start: S, end: E, count: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xrevrange_values<Ri, Rk, Rv, K, E, S>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
fn xrevrange_values<Ri, Rk, Rv, K, E, S>( &self, key: K, end: E, start: S, count: Option<u64>, ) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
XRANGE, but with the results returned in reverse order. The results will be automatically converted
to a less verbose type definition. Read moreSource§fn xrevrange<R, K, S, E>(
&self,
key: K,
end: E,
start: S,
count: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn xrevrange<R, K, S, E>( &self, key: K, end: E, start: S, count: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
XRANGE, but with the results returned in reverse order. Read moreSource§fn xlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
fn xlen<R, K>(&self, key: K) -> impl Future<Output = FredResult<R>> + Send
Source§fn xread_map<Rk1, Rk2, Rk3, Rv, K, I>(
&self,
count: Option<u64>,
block: Option<u64>,
keys: K,
ids: I,
) -> impl Future<Output = FredResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>> + Send
fn xread_map<Rk1, Rk2, Rk3, Rv, K, I>( &self, count: Option<u64>, block: Option<u64>, keys: K, ids: I, ) -> impl Future<Output = FredResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>> + Send
Source§fn xread<R, K, I>(
&self,
count: Option<u64>,
block: Option<u64>,
keys: K,
ids: I,
) -> impl Future<Output = FredResult<R>> + Send
fn xread<R, K, I>( &self, count: Option<u64>, block: Option<u64>, keys: K, ids: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xgroup_create<R, K, S, I>(
&self,
key: K,
groupname: S,
id: I,
mkstream: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn xgroup_create<R, K, S, I>( &self, key: K, groupname: S, id: I, mkstream: bool, ) -> impl Future<Output = FredResult<R>> + Send
groupname for the stream stored at key. Read moreSource§fn xgroup_createconsumer<R, K, G, C>(
&self,
key: K,
groupname: G,
consumername: C,
) -> impl Future<Output = FredResult<R>> + Send
fn xgroup_createconsumer<R, K, G, C>( &self, key: K, groupname: G, consumername: C, ) -> impl Future<Output = FredResult<R>> + Send
consumername in the consumer group groupname of the stream that’s stored at key. Read moreSource§fn xgroup_delconsumer<R, K, G, C>(
&self,
key: K,
groupname: G,
consumername: C,
) -> impl Future<Output = FredResult<R>> + Send
fn xgroup_delconsumer<R, K, G, C>( &self, key: K, groupname: G, consumername: C, ) -> impl Future<Output = FredResult<R>> + Send
consumername in the consumer group groupname of the stream that’s stored at key. Read moreSource§fn xgroup_destroy<R, K, S>(
&self,
key: K,
groupname: S,
) -> impl Future<Output = FredResult<R>> + Send
fn xgroup_destroy<R, K, S>( &self, key: K, groupname: S, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xgroup_setid<R, K, S, I>(
&self,
key: K,
groupname: S,
id: I,
) -> impl Future<Output = FredResult<R>> + Send
fn xgroup_setid<R, K, S, I>( &self, key: K, groupname: S, id: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xreadgroup_map<Rk1, Rk2, Rk3, Rv, G, C, K, I>(
&self,
group: G,
consumer: C,
count: Option<u64>,
block: Option<u64>,
noack: bool,
keys: K,
ids: I,
) -> impl Future<Output = FredResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>> + Send
fn xreadgroup_map<Rk1, Rk2, Rk3, Rv, G, C, K, I>( &self, group: G, consumer: C, count: Option<u64>, block: Option<u64>, noack: bool, keys: K, ids: I, ) -> impl Future<Output = FredResult<XReadResponse<Rk1, Rk2, Rk3, Rv>>> + Send
XREAD command with support for consumer groups. Read moreSource§fn xreadgroup<R, G, C, K, I>(
&self,
group: G,
consumer: C,
count: Option<u64>,
block: Option<u64>,
noack: bool,
keys: K,
ids: I,
) -> impl Future<Output = FredResult<R>> + Send
fn xreadgroup<R, G, C, K, I>( &self, group: G, consumer: C, count: Option<u64>, block: Option<u64>, noack: bool, keys: K, ids: I, ) -> impl Future<Output = FredResult<R>> + Send
XREAD command with support for consumer groups. Read moreSource§fn xack<R, K, G, I>(
&self,
key: K,
group: G,
ids: I,
) -> impl Future<Output = FredResult<R>> + Send
fn xack<R, K, G, I>( &self, key: K, group: G, ids: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xclaim_values<Ri, Rk, Rv, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: I,
idle: Option<u64>,
time: Option<u64>,
retry_count: Option<u64>,
force: bool,
justid: bool,
) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
fn xclaim_values<Ri, Rk, Rv, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, ids: I, idle: Option<u64>, time: Option<u64>, retry_count: Option<u64>, force: bool, justid: bool, ) -> impl Future<Output = FredResult<Vec<XReadValue<Ri, Rk, Rv>>>> + Send
Source§fn xclaim<R, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
ids: I,
idle: Option<u64>,
time: Option<u64>,
retry_count: Option<u64>,
force: bool,
justid: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn xclaim<R, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, ids: I, idle: Option<u64>, time: Option<u64>, retry_count: Option<u64>, force: bool, justid: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn xautoclaim_values<Ri, Rk, Rv, K, G, C, I>(
&self,
key: K,
group: G,
consumer: C,
min_idle_time: u64,
start: I,
count: Option<u64>,
justid: bool,
) -> impl Future<Output = FredResult<(String, Vec<XReadValue<Ri, Rk, Rv>>)>> + Send
fn xautoclaim_values<Ri, Rk, Rv, K, G, C, I>( &self, key: K, group: G, consumer: C, min_idle_time: u64, start: I, count: Option<u64>, justid: bool, ) -> impl Future<Output = FredResult<(String, Vec<XReadValue<Ri, Rk, Rv>>)>> + Send
Source§impl TimeSeriesInterface for Pool
Available on crate feature i-time-series only.
impl TimeSeriesInterface for Pool
i-time-series only.Source§fn ts_add<R, K, T, L>(
&self,
key: K,
timestamp: T,
value: f64,
retention: Option<u64>,
encoding: Option<Encoding>,
chunk_size: Option<u64>,
on_duplicate: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_add<R, K, T, L>( &self, key: K, timestamp: T, value: f64, retention: Option<u64>, encoding: Option<Encoding>, chunk_size: Option<u64>, on_duplicate: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_alter<R, K, L>(
&self,
key: K,
retention: Option<u64>,
chunk_size: Option<u64>,
duplicate_policy: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_alter<R, K, L>( &self, key: K, retention: Option<u64>, chunk_size: Option<u64>, duplicate_policy: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_create<R, K, L>(
&self,
key: K,
retention: Option<u64>,
encoding: Option<Encoding>,
chunk_size: Option<u64>,
duplicate_policy: Option<DuplicatePolicy>,
labels: L,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_create<R, K, L>( &self, key: K, retention: Option<u64>, encoding: Option<Encoding>, chunk_size: Option<u64>, duplicate_policy: Option<DuplicatePolicy>, labels: L, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_createrule<R, S, D>(
&self,
src: S,
dest: D,
aggregation: (Aggregator, u64),
align_timestamp: Option<u64>,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_createrule<R, S, D>( &self, src: S, dest: D, aggregation: (Aggregator, u64), align_timestamp: Option<u64>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_decrby<R, K, L>(
&self,
key: K,
subtrahend: f64,
timestamp: Option<Timestamp>,
retention: Option<u64>,
uncompressed: bool,
chunk_size: Option<u64>,
labels: L,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_decrby<R, K, L>( &self, key: K, subtrahend: f64, timestamp: Option<Timestamp>, retention: Option<u64>, uncompressed: bool, chunk_size: Option<u64>, labels: L, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_del<R, K>(
&self,
key: K,
from: i64,
to: i64,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_del<R, K>( &self, key: K, from: i64, to: i64, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_deleterule<R, S, D>(
&self,
src: S,
dest: D,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_deleterule<R, S, D>( &self, src: S, dest: D, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_get<R, K>(
&self,
key: K,
latest: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_get<R, K>( &self, key: K, latest: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_incrby<R, K, L>(
&self,
key: K,
addend: f64,
timestamp: Option<Timestamp>,
retention: Option<u64>,
uncompressed: bool,
chunk_size: Option<u64>,
labels: L,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_incrby<R, K, L>( &self, key: K, addend: f64, timestamp: Option<Timestamp>, retention: Option<u64>, uncompressed: bool, chunk_size: Option<u64>, labels: L, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_info<R, K>(
&self,
key: K,
debug: bool,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_info<R, K>( &self, key: K, debug: bool, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_madd<R, K, I>(
&self,
samples: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_madd<R, K, I>( &self, samples: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_mget<R, L, S, I>(
&self,
latest: bool,
labels: Option<L>,
filters: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_mget<R, L, S, I>( &self, latest: bool, labels: Option<L>, filters: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_mrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_mrange<R, F, T, I, S, J>( &self, from: F, to: T, latest: bool, filter_by_ts: I, filter_by_value: Option<(i64, i64)>, labels: Option<GetLabels>, count: Option<u64>, aggregation: Option<RangeAggregation>, filters: J, group_by: Option<GroupBy>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_mrevrange<R, F, T, I, S, J>(
&self,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
labels: Option<GetLabels>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
filters: J,
group_by: Option<GroupBy>,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_mrevrange<R, F, T, I, S, J>( &self, from: F, to: T, latest: bool, filter_by_ts: I, filter_by_value: Option<(i64, i64)>, labels: Option<GetLabels>, count: Option<u64>, aggregation: Option<RangeAggregation>, filters: J, group_by: Option<GroupBy>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_queryindex<R, S, I>(
&self,
filters: I,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_queryindex<R, S, I>( &self, filters: I, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_range<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_range<R, K, F, T, I>( &self, key: K, from: F, to: T, latest: bool, filter_by_ts: I, filter_by_value: Option<(i64, i64)>, count: Option<u64>, aggregation: Option<RangeAggregation>, ) -> impl Future<Output = FredResult<R>> + Send
Source§fn ts_revrange<R, K, F, T, I>(
&self,
key: K,
from: F,
to: T,
latest: bool,
filter_by_ts: I,
filter_by_value: Option<(i64, i64)>,
count: Option<u64>,
aggregation: Option<RangeAggregation>,
) -> impl Future<Output = FredResult<R>> + Send
fn ts_revrange<R, K, F, T, I>( &self, key: K, from: F, to: T, latest: bool, filter_by_ts: I, filter_by_value: Option<(i64, i64)>, count: Option<u64>, aggregation: Option<RangeAggregation>, ) -> impl Future<Output = FredResult<R>> + Send
Source§impl TransactionInterface for Pool
Available on crate feature transactions only.
impl TransactionInterface for Pool
transactions only.Source§fn multi(&self) -> Transaction
fn multi(&self) -> Transaction
Auto Trait Implementations§
impl Freeze for Pool
impl !RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl !UnwindSafe for Pool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more