public interface ClientCommands
| Modifier and Type | Method and Description |
|---|---|
String |
clientGetname()
Returns the name of the current connection as set by CLIENT SETNAME
|
long |
clientId()
Returns the ID of the current connection.
|
String |
clientInfo()
Returns information and statistics about the current client connection
in a mostly human readable format.
|
long |
clientKill(ClientKillParams params)
Close a given client connection.
|
String |
clientKill(String ipPort)
Close a given client connection.
|
String |
clientKill(String ip,
int port)
Close a given client connection.
|
String |
clientList()
Returns information and statistics about the client connections server
in a mostly human readable format.
|
String |
clientList(ClientType type)
Returns information and statistics about the client connections server
in a mostly human readable format filter by client type.
|
String |
clientList(long... clientIds)
Returns information and statistics about the client connections server
in a mostly human readable format filter by client ids.
|
String |
clientNoEvictOff()
Turn off the client eviction mode for the current connection.
|
String |
clientNoEvictOn()
Turn on the client eviction mode for the current connection.
|
String |
clientPause(long timeout)
A connections control command able to suspend all the
Redis clients for the specified amount of time (in milliseconds)
|
String |
clientPause(long timeout,
ClientPauseMode mode)
A connections control command able to suspend all the
Redis clients for the specified amount of time (in milliseconds)
|
String |
clientSetname(String name)
Assigns a name to the current connection.
|
long |
clientUnblock(long clientId)
Unblock from a different connection, a client blocked in a
blocking operation, such as for instance BRPOP or XREAD or WAIT.
|
long |
clientUnblock(long clientId,
UnblockType unblockType)
Unblock from a different connection, a client blocked in a
blocking operation, such as for instance BRPOP or XREAD or WAIT.
|
String clientKill(String ipPort)
ipPort - The ip:port should match a line returned by the CLIENT LIST command (addr field).String clientKill(String ip, int port)
ip - The ip should match a line returned by the CLIENT LIST command (addr field).port - The port should match a line returned by the CLIENT LIST command (addr field).long clientKill(ClientKillParams params)
params - Connection info will be closedString clientGetname()
String clientList()
String clientList(ClientType type)
String clientList(long... clientIds)
clientIds - Unique 64-bit client IDsString clientInfo()
String clientSetname(String name)
name - current connection namelong clientId()
long clientUnblock(long clientId)
clientId - The id of the clientlong clientUnblock(long clientId,
UnblockType unblockType)
clientId - The id of the clientunblockType - TIMEOUT|ERRORString clientPause(long timeout)
timeout - WRITE|ALLString clientPause(long timeout, ClientPauseMode mode)
timeout - Command timeoutmode - WRITE|ALLString clientNoEvictOn()
String clientNoEvictOff()
Copyright © 2022. All rights reserved.