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 client connections based on certain selection parameters.
|
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 |
clientNoTouchOff()
Turn off CLIENT NO-TOUCH
|
String |
clientNoTouchOn()
Turn on CLIENT NO-TOUCH
|
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 |
clientSetInfo(ClientAttributeOption attr,
String value)
client set info command
Since redis 7.2
|
String |
clientSetname(String name)
Assigns a name to the current connection.
|
TrackingInfo |
clientTrackingInfo() |
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 |
clientUnpause()
CLIENT UNPAUSE is used to resume command processing for all clients that were paused by CLIENT PAUSE.
|
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 - Parameters defining what client connections to close.String clientGetname()
String clientList()
String clientList(ClientType type)
String clientList(long... clientIds)
clientIds - Unique 64-bit client IDsString clientInfo()
String clientSetInfo(ClientAttributeOption attr, String value)
attr - the attr optionvalue - the valueString 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 clientUnpause()
String clientNoEvictOn()
String clientNoEvictOff()
String clientNoTouchOn()
String clientNoTouchOff()
TrackingInfo clientTrackingInfo()
Copyright © 2024. All rights reserved.