pub trait ServerCommands {
Show 53 methods
// Provided methods
fn acl_cat<C, CC>(
&mut self,
options: AclCatOptions,
) -> PreparedCommand<'_, Self, CC>
where Self: Sized,
C: FromValue,
CC: FromSingleValueArray<C> { ... }
fn acl_deluser<U, UU>(
&mut self,
usernames: UU,
) -> PreparedCommand<'_, Self, usize>
where Self: Sized,
U: Into<CommandArg>,
UU: SingleArgOrCollection<U> { ... }
fn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions,
) -> PreparedCommand<'_, Self, R>
where Self: Sized,
U: Into<CommandArg>,
C: Into<CommandArg>,
R: FromValue { ... }
fn acl_genpass<R: FromValue>(
&mut self,
options: AclGenPassOptions,
) -> PreparedCommand<'_, Self, R>
where Self: Sized { ... }
fn acl_getuser<U, RR>(
&mut self,
username: U,
) -> PreparedCommand<'_, Self, RR>
where Self: Sized,
U: Into<CommandArg>,
RR: FromKeyValueValueArray<String, Value> { ... }
fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>
where Self: Sized { ... }
fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn acl_log<EE>(
&mut self,
options: AclLogOptions,
) -> PreparedCommand<'_, Self, Vec<EE>>
where Self: Sized,
EE: FromKeyValueValueArray<String, Value> { ... }
fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
U: Into<CommandArg>,
R: Into<CommandArg>,
RR: SingleArgOrCollection<R> { ... }
fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>
where Self: Sized,
U: FromValue,
UU: FromSingleValueArray<U> { ... }
fn acl_whoami<U: FromValue>(&mut self) -> PreparedCommand<'_, Self, U>
where Self: Sized { ... }
fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
where Self: Sized { ... }
fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>
where Self: Sized { ... }
fn command_docs<N, NN, DD>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, DD>
where Self: Sized,
N: Into<CommandArg>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc> { ... }
fn command_getkeys<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>
where Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String> { ... }
fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>
where Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>> { ... }
fn command_info<N, NN>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
where Self: Sized,
N: Into<CommandArg>,
NN: SingleArgOrCollection<N> { ... }
fn command_list<CC>(
&mut self,
options: CommandListOptions,
) -> PreparedCommand<'_, Self, CC>
where Self: Sized,
CC: FromSingleValueArray<String> { ... }
fn config_get<P, PP, V, VV>(
&mut self,
params: PP,
) -> PreparedCommand<'_, Self, VV>
where Self: Sized,
P: Into<CommandArg>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V> { ... }
fn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn config_set<P, V, C>(
&mut self,
configs: C,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
P: Into<CommandArg>,
V: Into<CommandArg>,
C: KeyValueArgOrCollection<P, V> { ... }
fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>
where Self: Sized { ... }
fn failover(
&mut self,
options: FailOverOptions,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn flushdb(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn flushall(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>
where Self: Sized,
SS: SingleArgOrCollection<InfoSection> { ... }
fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>
where Self: Sized { ... }
fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>
where Self: Sized { ... }
fn latency_graph(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, String>
where Self: Sized { ... }
fn latency_histogram<C, CC, RR>(
&mut self,
commands: CC,
) -> PreparedCommand<'_, Self, RR>
where Self: Sized,
C: Into<CommandArg>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram> { ... }
fn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, RR>
where Self: Sized,
RR: FromSingleValueArray<(u32, u32)> { ... }
fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>
where Self: Sized,
RR: FromSingleValueArray<(String, u32, u32, u32)> { ... }
fn latency_reset<EE>(
&mut self,
events: EE,
) -> PreparedCommand<'_, Self, usize>
where Self: Sized,
EE: SingleArgOrCollection<LatencyHistoryEvent> { ... }
fn lolwut(
&mut self,
options: LolWutOptions,
) -> PreparedCommand<'_, Self, String>
where Self: Sized { ... }
fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>
where Self: Sized { ... }
fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>
where Self: Sized { ... }
fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>
where Self: Sized { ... }
fn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions,
) -> PreparedCommand<'_, Self, Option<usize>>
where Self: Sized,
K: Into<CommandArg> { ... }
fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>
where Self: Sized,
MM: FromSingleValueArray<ModuleInfo> { ... }
fn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
P: Into<CommandArg> { ... }
fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
where Self: Sized,
N: Into<CommandArg> { ... }
fn replicaof(
&mut self,
options: ReplicaOfOptions,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>
where Self: Sized { ... }
fn save(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn shutdown(
&mut self,
options: ShutdownOptions,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn slowlog_get(
&mut self,
options: SlowLogOptions,
) -> PreparedCommand<'_, Self, Vec<SlowLogEntry>>
where Self: Sized { ... }
fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>
where Self: Sized { ... }
fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn swapdb(
&mut self,
index1: usize,
index2: usize,
) -> PreparedCommand<'_, Self, ()>
where Self: Sized { ... }
fn time(&mut self) -> PreparedCommand<'_, Self, (u32, u32)>
where Self: Sized { ... }
}
Expand description
A group of Redis commands related to Server Management
§See Also
Provided Methods§
Sourcefn acl_cat<C, CC>(
&mut self,
options: AclCatOptions,
) -> PreparedCommand<'_, Self, CC>
fn acl_cat<C, CC>( &mut self, options: AclCatOptions, ) -> PreparedCommand<'_, Self, CC>
The command shows the available ACL categories if called without arguments. If a category name is given, the command shows all the Redis commands in the specified category.
§Return
A collection of ACL categories or a collection of commands inside a given category.
§Errors
The command may return an error if an invalid category name is given as argument.
§See Also
Sourcefn acl_deluser<U, UU>(
&mut self,
usernames: UU,
) -> PreparedCommand<'_, Self, usize>
fn acl_deluser<U, UU>( &mut self, usernames: UU, ) -> PreparedCommand<'_, Self, usize>
Sourcefn acl_dryrun<U, C, R>(
&mut self,
username: U,
command: C,
options: AclDryRunOptions,
) -> PreparedCommand<'_, Self, R>
fn acl_dryrun<U, C, R>( &mut self, username: U, command: C, options: AclDryRunOptions, ) -> PreparedCommand<'_, Self, R>
Sourcefn acl_genpass<R: FromValue>(
&mut self,
options: AclGenPassOptions,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
fn acl_genpass<R: FromValue>(
&mut self,
options: AclGenPassOptions,
) -> PreparedCommand<'_, Self, R>where
Self: Sized,
Generates a password starting from /dev/urandom if available, otherwise (in systems without /dev/urandom) it uses a weaker system that is likely still better than picking a weak password by hand.
§Return
by default 64 bytes string representing 256 bits of pseudorandom data. Otherwise if an argument if needed, the output string length is the number of specified bits (rounded to the next multiple of 4) divided by 4.
§See Also
Sourcefn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>
fn acl_getuser<U, RR>(&mut self, username: U) -> PreparedCommand<'_, Self, RR>
Sourcefn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
fn acl_list(&mut self) -> PreparedCommand<'_, Self, Vec<String>>where
Self: Sized,
Sourcefn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_load(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will reload the ACLs from the file, replacing all the current ACL rules with the ones defined in the file.
§Return
An array of strings. Each line in the returned array defines a different user, and the format is the same used in the redis.conf file or the external ACL file
§Errors
The command may fail with an error for several reasons:
- if the file is not readable,
- if there is an error inside the file, and in such case the error will be reported to the user in the error.
- Finally the command will fail if the server is not configured to use an external ACL file.
§See Also
Sourcefn acl_log<EE>(
&mut self,
options: AclLogOptions,
) -> PreparedCommand<'_, Self, Vec<EE>>
fn acl_log<EE>( &mut self, options: AclLogOptions, ) -> PreparedCommand<'_, Self, Vec<EE>>
Sourcefn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn acl_save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
When Redis is configured to use an ACL file (with the aclfile configuration option), this command will save the currently defined ACLs from the server memory to the ACL file.
§Errors
The command may fail with an error for several reasons:
- if the file cannot be written
- if the server is not configured to use an external ACL file.
§See Also
Sourcefn acl_setuser<U, R, RR>(
&mut self,
username: U,
rules: RR,
) -> PreparedCommand<'_, Self, ()>
fn acl_setuser<U, R, RR>( &mut self, username: U, rules: RR, ) -> PreparedCommand<'_, Self, ()>
Sourcefn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>
fn acl_users<U, UU>(&mut self) -> PreparedCommand<'_, Self, UU>
Sourcefn acl_whoami<U: FromValue>(&mut self) -> PreparedCommand<'_, Self, U>where
Self: Sized,
fn acl_whoami<U: FromValue>(&mut self) -> PreparedCommand<'_, Self, U>where
Self: Sized,
Sourcefn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
fn command(&mut self) -> PreparedCommand<'_, Self, Vec<CommandInfo>>where
Self: Sized,
Sourcefn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn command_count(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Sourcefn command_docs<N, NN, DD>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: Into<CommandArg>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc>,
fn command_docs<N, NN, DD>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, DD>where
Self: Sized,
N: Into<CommandArg>,
NN: SingleArgOrCollection<N>,
DD: FromKeyValueValueArray<String, CommandDoc>,
Sourcefn command_getkeys<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
fn command_getkeys<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromSingleValueArray<String>,
Sourcefn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>>,
fn command_getkeysandflags<A, AA, KK>(
&mut self,
args: AA,
) -> PreparedCommand<'_, Self, KK>where
Self: Sized,
A: Into<CommandArg>,
AA: SingleArgOrCollection<A>,
KK: FromKeyValueValueArray<String, Vec<String>>,
Sourcefn command_info<N, NN>(
&mut self,
command_names: NN,
) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
fn command_info<N, NN>( &mut self, command_names: NN, ) -> PreparedCommand<'_, Self, Vec<CommandInfo>>
Sourcefn command_list<CC>(
&mut self,
options: CommandListOptions,
) -> PreparedCommand<'_, Self, CC>
fn command_list<CC>( &mut self, options: CommandListOptions, ) -> PreparedCommand<'_, Self, CC>
Sourcefn config_get<P, PP, V, VV>(
&mut self,
params: PP,
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: Into<CommandArg>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V>,
fn config_get<P, PP, V, VV>(
&mut self,
params: PP,
) -> PreparedCommand<'_, Self, VV>where
Self: Sized,
P: Into<CommandArg>,
PP: SingleArgOrCollection<P>,
V: FromValue,
VV: FromKeyValueValueArray<String, V>,
Used to read the configuration parameters of a running Redis server.
For every key that does not hold a string value or does not exist, the special value nil is returned. Because of this, the operation never fails.
§Return
Array reply: collection of the requested params with their matching values.
§See Also
Sourcefn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_resetstat(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Sourcefn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn config_rewrite(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Rewrites the redis.conf file the server was started with,
applying the minimal changes needed to make it reflect the configuration currently used by the server,
which may be different compared to the original one because of the use of the
config_set
command.
§See Also
Sourcefn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>
fn config_set<P, V, C>(&mut self, configs: C) -> PreparedCommand<'_, Self, ()>
Used in order to reconfigure the server at run time without the need to restart Redis.
§See Also
Sourcefn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn dbsize(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
Return the number of keys in the currently-selected database.
§See Also
Sourcefn failover(
&mut self,
options: FailOverOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn failover(
&mut self,
options: FailOverOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command will start a coordinated failover between the currently-connected-to master and one of its replicas.
§See Also
Sourcefn flushdb(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushdb(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Sourcefn flushall(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn flushall(
&mut self,
flushing_mode: FlushingMode,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Delete all the keys of all the existing databases, not just the currently selected one.
§See Also
Sourcefn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>
fn info<SS>(&mut self, sections: SS) -> PreparedCommand<'_, Self, String>
This command returns information and statistics about the server in a format that is simple to parse by computers and easy to read by humans.
§See Also
Sourcefn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
fn lastsave(&mut self) -> PreparedCommand<'_, Self, u64>where
Self: Sized,
Return the UNIX TIME of the last DB save executed with success.
§See Also
Sourcefn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Sourcefn latency_graph(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn latency_graph(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Sourcefn latency_histogram<C, CC, RR>(
&mut self,
commands: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram>,
fn latency_histogram<C, CC, RR>(
&mut self,
commands: CC,
) -> PreparedCommand<'_, Self, RR>where
Self: Sized,
C: Into<CommandArg>,
CC: SingleArgOrCollection<C>,
RR: FromKeyValueValueArray<String, CommandHistogram>,
Sourcefn latency_history<RR>(
&mut self,
event: LatencyHistoryEvent,
) -> PreparedCommand<'_, Self, RR>
fn latency_history<RR>( &mut self, event: LatencyHistoryEvent, ) -> PreparedCommand<'_, Self, RR>
Sourcefn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>
fn latency_latest<RR>(&mut self) -> PreparedCommand<'_, Self, RR>
This command reports the latest latency events logged.
§Return
A collection of the latest latency events logged. Each reported event has the following fields:
- Event name.
- Unix timestamp of the latest latency spike for the event.
- Latest event latency in millisecond.
- All-time maximum latency for this event.
“All-time” means the maximum latency since the Redis instance was started,
or the time that events were reset
.
§See Also
Sourcefn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>
fn latency_reset<EE>(&mut self, events: EE) -> PreparedCommand<'_, Self, usize>
Sourcefn lolwut(
&mut self,
options: LolWutOptions,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn lolwut(
&mut self,
options: LolWutOptions,
) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Sourcefn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_doctor(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Sourcefn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
fn memory_malloc_stats(&mut self) -> PreparedCommand<'_, Self, String>where
Self: Sized,
Sourcefn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn memory_purge(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command attempts to purge dirty pages so these can be reclaimed by the allocator.
§See Also
Sourcefn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
fn memory_stats(&mut self) -> PreparedCommand<'_, Self, MemoryStats>where
Self: Sized,
Sourcefn memory_usage<K>(
&mut self,
key: K,
options: MemoryUsageOptions,
) -> PreparedCommand<'_, Self, Option<usize>>
fn memory_usage<K>( &mut self, key: K, options: MemoryUsageOptions, ) -> PreparedCommand<'_, Self, Option<usize>>
Sourcefn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>
fn module_list<MM>(&mut self) -> PreparedCommand<'_, Self, MM>
Returns information about the modules loaded to the server.
§Return
list of loaded modules.
Each element in the list represents a module as an instance of ModuleInfo
§See Also
Sourcefn module_load<P>(
&mut self,
path: P,
options: ModuleLoadOptions,
) -> PreparedCommand<'_, Self, ()>
fn module_load<P>( &mut self, path: P, options: ModuleLoadOptions, ) -> PreparedCommand<'_, Self, ()>
Sourcefn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
fn module_unload<N>(&mut self, name: N) -> PreparedCommand<'_, Self, ()>
Sourcefn replicaof(
&mut self,
options: ReplicaOfOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn replicaof(
&mut self,
options: ReplicaOfOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command can change the replication settings of a replica on the fly.
§See Also
Sourcefn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
fn role(&mut self) -> PreparedCommand<'_, Self, RoleResult>where
Self: Sized,
Provide information on the role of a Redis instance in the context of replication,
by returning if the instance is currently a master
, slave
, or sentinel
.
§See Also
Sourcefn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn save(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command performs a synchronous save of the dataset producing a point in time snapshot of all the data inside the Redis instance, in the form of an RDB file.
§See Also
Sourcefn shutdown(
&mut self,
options: ShutdownOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn shutdown(
&mut self,
options: ShutdownOptions,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
Sourcefn slowlog_get(
&mut self,
options: SlowLogOptions,
) -> PreparedCommand<'_, Self, Vec<SlowLogEntry>>where
Self: Sized,
fn slowlog_get(
&mut self,
options: SlowLogOptions,
) -> PreparedCommand<'_, Self, Vec<SlowLogEntry>>where
Self: Sized,
This command returns entries from the slow log in chronological order.
§See Also
Sourcefn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
fn slowlog_len(&mut self) -> PreparedCommand<'_, Self, usize>where
Self: Sized,
This command returns the current number of entries in the slow log.
§See Also
Sourcefn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn slowlog_reset(&mut self) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command resets the slow log, clearing all entries in it.
§See Also
Sourcefn swapdb(
&mut self,
index1: usize,
index2: usize,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
fn swapdb(
&mut self,
index1: usize,
index2: usize,
) -> PreparedCommand<'_, Self, ()>where
Self: Sized,
This command swaps two Redis databases, so that immediately all the clients connected to a given database will see the data of the other database, and the other way around.