Asynchronously rewrites the append-only file.
Asynchronously rewrites the append-only file.
1.0.0
Asynchronously saves the dataset to disk.
Asynchronously saves the dataset to disk.
1.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if the background save is already in progress
Get the current client name.
Get the current client name.
option containing the name if it has been set, None
otherwise
2.6.9
Kills the connection of a client.
Kills the connection of a client.
ip address of the client to kill
port of the client to kill
2.4.0
[[scredis.exceptions.RedisErrorResponseException]]
if the the client does not exist
Kills the connection of potentially multiple clients satisfying various filters.
Kills the connection of potentially multiple clients satisfying various filters.
when true, the calling client will not be killed, when false, the latter can be killed
the number of killed client(s)
2.8.12
Lists all client connections.
Lists all client connections.
list of clients
2.4.0
Suspends all clients for the specified amount of time.
Suspends all clients for the specified amount of time.
the amount of time in milliseconds for which clients should be suspended
2.9.50
[[scredis.exceptions.RedisErrorResponseException]]
if the timeout is invalid
Sets the current client name.
Sets the current client name. If the empty string is provided, the name will be unset.
name to associate the client to, if empty, unsets the client name
2.6.9
Returns details about all Redis
commands.
Returns details about all Redis
commands.
map of command name to command info
2.8.13
Returns the total number of commands in the target Redis
server.
Returns the total number of commands in the target Redis
server.
total number of commands
2.8.13
Returns the list of keys part of a full Redis
command.
Returns the list of keys part of a full Redis
command.
the list of keys present in the command
2.8.13
Returns details about the specified Redis
commands.
Returns details about the specified Redis
commands.
command names
map of command name to command info
2.8.13
Gets the value of a configuration parameter.
Gets the value of a configuration parameter.
name or pattern of the configuration parameter to get
option containing the matched parameters, or None
if no parameters are matched
2.0.0
Resets the stats returned by INFO.
Resets the stats returned by INFO.
2.0.0
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.
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.
2.8.0
[[scredis.exceptions.RedisErrorResponseException]]
if the configuration file was not properly written
Sets a configuration parameter to the given value.
Sets a configuration parameter to the given value.
parameter's name
value to set parameter to
2.0.0
[[scredis.exceptions.RedisErrorResponseException]]
if the parameter could not be set
Return the number of keys in the selected database.
Return the number of keys in the selected database.
number of keys in the selected database
1.0.0
Removes all keys from all databases.
Removes all keys from all databases.
1.0.0
Removes all keys from the current database.
Removes all keys from the current database.
1.0.0
Gets information and statistics about the server.
Gets information and statistics about the server.
name of the section for which data should be retrieved
map of field -> value pairs that match the specified section, or an empty map if the section does not exist
1.0.0
The section can additionally take the following values: all
and default
.
Gets the UNIX timestamp of the last successful save to disk.
Gets the UNIX timestamp of the last successful save to disk.
UNIX timestamp
1.0.0
Provides 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.
Provides 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.
the scredis.Role of the Redis
instance
2.8.12
The command also returns additional information about the state of the replication (if the role is master or slave) or the list of monitored master names (if the role is sentinel).
Synchronously saves the dataset to disk.
Synchronously saves the dataset to disk.
1.0.0
Gracefully shuts down a Redis
server.
Gracefully shuts down a Redis
server.
optional scredis.ShutdownModifier
1.0.0
The command performs the following operations:
- Stops all the clients
- Performs a blocking SAVE
if at least one save point is configured
- Flushes the Append Only File if AOF is enabled
- Quits the server
Configures the current Redis
instance as a slave of another Redis
instance.
Configures the current Redis
instance as a slave of another Redis
instance.
the host of the master instance
the port of the master instance
1.0.0
Breaks the replication of a slave instance
, turning it back into a master instance.
Breaks the replication of a slave instance
, turning it back into a master instance.
1.0.0
Retieves entries from the slowlog.
Retieves entries from the slowlog.
optionally limits the number of retrieved entries
list of slowlog entries
2.2.12
Returns the number of entries in the slowlog.
Returns the number of entries in the slowlog.
number of entries in the slowlog
2.2.12
Resets the slowlog.
Resets the slowlog.
2.2.12
Returns the current server time.
Returns the current server time.
pair of longs containing (1) UNIX timestamp and (2) microseconds
2.6.0
This trait implements server commands.