K
- Key type.V
- Value type.public interface NodeSelectionServerCommands<K,V>
Modifier and Type | Method and Description |
---|---|
Executions<String> |
bgrewriteaof()
Asynchronously rewrite the append-only file.
|
Executions<String> |
bgsave()
Asynchronously save the dataset to disk.
|
Executions<String> |
clientCaching(boolean enabled)
Control tracking of keys in the context of server-assisted client cache invalidation.
|
Executions<K> |
clientGetname()
Get the current connection name.
|
Executions<Long> |
clientGetredir()
Returns the client ID we are redirecting our tracking notifications to.
|
Executions<Long> |
clientId()
Get the id of the current connection.
|
Executions<Long> |
clientKill(KillArgs killArgs)
Kill connections of clients which are filtered by
killArgs . |
Executions<String> |
clientKill(String addr)
Kill the connection of a client identified by ip:port.
|
Executions<String> |
clientList()
Get the list of client connections.
|
Executions<String> |
clientPause(long timeout)
Stop processing commands from clients for some time.
|
Executions<String> |
clientSetname(K name)
Set the current connection name.
|
Executions<String> |
clientTracking(TrackingArgs args)
Enables the tracking feature of the Redis server, that is used for server assisted client side caching.
|
Executions<Long> |
clientUnblock(long id,
UnblockType type)
Unblock the specified blocked client.
|
Executions<List<Object>> |
command()
Returns an array reply of details about all Redis commands.
|
Executions<Long> |
commandCount()
Get total number of Redis commands.
|
Executions<List<Object>> |
commandInfo(CommandType... commands)
Returns an array reply of details about the requested commands.
|
Executions<List<Object>> |
commandInfo(String... commands)
Returns an array reply of details about the requested commands.
|
Executions<Map<String,String>> |
configGet(String parameter)
Get the value of a configuration parameter.
|
Executions<String> |
configResetstat()
Reset the stats returned by INFO.
|
Executions<String> |
configRewrite()
Rewrite the configuration file with the in memory configuration.
|
Executions<String> |
configSet(String parameter,
String value)
Set a configuration parameter to the given value.
|
Executions<Long> |
dbsize()
Return the number of keys in the selected database.
|
Executions<String> |
debugCrashAndRecover(Long delay)
Crash and recover.
|
Executions<String> |
debugHtstats(int db)
Get debugging information about the internal hash-table state.
|
Executions<String> |
debugObject(K key)
Get debugging information about a key.
|
Executions<String> |
debugReload()
Save RDB, clear the database and reload RDB.
|
Executions<String> |
debugRestart(Long delay)
Restart the server gracefully.
|
Executions<String> |
debugSdslen(K key)
Get debugging information about the internal SDS length.
|
Executions<String> |
flushall()
Remove all keys from all databases.
|
Executions<String> |
flushall(FlushMode flushMode)
Remove all keys from all databases using the specified
FlushMode . |
Executions<String> |
flushallAsync()
Deprecated.
since 6.1, use
flushall(FlushMode) instead. |
Executions<String> |
flushdb()
Remove all keys from the current database.
|
Executions<String> |
flushdb(FlushMode flushMode)
Remove all keys from the current database using the specified
FlushMode . |
Executions<String> |
flushdbAsync()
Deprecated.
since 6.1, use
flushdb(FlushMode) instead. |
Executions<String> |
info()
Get information and statistics about the server.
|
Executions<String> |
info(String section)
Get information and statistics about the server.
|
Executions<Date> |
lastsave()
Get the UNIX time stamp of the last successful save to disk.
|
Executions<Long> |
memoryUsage(K key)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
Executions<String> |
save()
Synchronously save the dataset to disk.
|
Executions<String> |
slaveof(String host,
int port)
Make the server a replica of another instance, or promote it as master.
|
Executions<String> |
slaveofNoOne()
Promote server as master.
|
Executions<List<Object>> |
slowlogGet()
Read the slow log.
|
Executions<List<Object>> |
slowlogGet(int count)
Read the slow log.
|
Executions<Long> |
slowlogLen()
Obtaining the current length of the slow log.
|
Executions<String> |
slowlogReset()
Resetting the slow log.
|
Executions<List<V>> |
time()
Return the current server time.
|
Executions<String> bgrewriteaof()
OK
.Executions<String> bgsave()
Executions<String> clientCaching(boolean enabled)
enabled
- true
to enable key tracking.OK
.Executions<K> clientGetname()
Executions<Long> clientGetredir()
Executions<Long> clientId()
Executions<String> clientKill(String addr)
addr
- ip:port.OK
if the connection exists and has been closed.Executions<Long> clientKill(KillArgs killArgs)
killArgs
.killArgs
- args for the kill operation.Executions<String> clientList()
Executions<String> clientPause(long timeout)
timeout
- the timeout value in milliseconds.Executions<String> clientSetname(K name)
name
- the client name.OK
if the connection name was successfully set.Executions<String> clientTracking(TrackingArgs args)
args
- for the CLIENT TRACKING operation.OK
.Executions<Long> clientUnblock(long id, UnblockType type)
id
- the client id.type
- unblock type.Executions<List<Object>> command()
Executions<Long> commandCount()
Executions<List<Object>> commandInfo(String... commands)
commands
- the commands to query for.Executions<List<Object>> commandInfo(CommandType... commands)
commands
- the commands to query for.Executions<Map<String,String>> configGet(String parameter)
parameter
- name of the parameter.Executions<String> configResetstat()
OK
.Executions<String> configRewrite()
OK
when the configuration was rewritten properly. Otherwise an error is
returned.Executions<String> configSet(String parameter, String value)
parameter
- the parameter name.value
- the parameter value.OK
when the configuration was set properly. Otherwise an error is returned.Executions<Long> dbsize()
Executions<String> debugCrashAndRecover(Long delay)
delay
- optional delay in milliseconds.Executions<String> debugHtstats(int db)
db
- the database number.Executions<String> debugObject(K key)
key
- the key.Executions<String> debugReload()
Executions<String> debugRestart(Long delay)
delay
- optional delay in milliseconds.Executions<String> debugSdslen(K key)
key
- the key.Executions<String> flushall()
Executions<String> flushall(FlushMode flushMode)
FlushMode
.flushMode
- the flush mode (sync/asnync).@Deprecated Executions<String> flushallAsync()
flushall(FlushMode)
instead.Executions<String> flushdb()
Executions<String> flushdb(FlushMode flushMode)
FlushMode
.flushMode
- the flush mode (sync/asnync).@Deprecated Executions<String> flushdbAsync()
flushdb(FlushMode)
instead.Executions<String> info()
Executions<String> info(String section)
section
- the section type: string.Executions<Date> lastsave()
Executions<Long> memoryUsage(K key)
Executions<String> save()
Executions<String> slaveof(String host, int port)
host
- the host type: string.port
- the port type: string.Executions<String> slaveofNoOne()
Executions<List<Object>> slowlogGet()
Executions<List<Object>> slowlogGet(int count)
count
- the count.Executions<Long> slowlogLen()
Executions<String> slowlogReset()
Executions<List<V>> time()
Copyright © 2021 lettuce.io. All rights reserved.