public interface ClientCommands
Modifier and Type | Method and Description |
---|---|
java.lang.String |
clientGetname()
Returns the name of the current connection as set by CLIENT SETNAME
|
long |
clientId()
Returns the ID of the current connection.
|
java.lang.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.
|
java.lang.String |
clientKill(java.lang.String ipPort)
Close a given client connection.
|
java.lang.String |
clientKill(java.lang.String ip,
int port)
Close a given client connection.
|
java.lang.String |
clientList()
Returns information and statistics about the client connections server
in a mostly human readable format.
|
java.lang.String |
clientList(ClientType type)
Returns information and statistics about the client connections server
in a mostly human readable format filter by client type.
|
java.lang.String |
clientList(long... clientIds)
Returns information and statistics about the client connections server
in a mostly human readable format filter by client ids.
|
java.lang.String |
clientNoEvictOff()
Turn off the client eviction mode for the current connection.
|
java.lang.String |
clientNoEvictOn()
Turn on the client eviction mode for the current connection.
|
java.lang.String |
clientNoTouchOff()
Turn off CLIENT NO-TOUCH
|
java.lang.String |
clientNoTouchOn()
Turn on CLIENT NO-TOUCH
|
java.lang.String |
clientPause(long timeout)
A connections control command able to suspend all the
Redis clients for the specified amount of time (in milliseconds)
|
java.lang.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)
|
java.lang.String |
clientSetInfo(ClientAttributeOption attr,
java.lang.String value)
client set info command
Since redis 7.2
|
java.lang.String |
clientSetname(java.lang.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.
|
java.lang.String |
clientUnpause()
CLIENT UNPAUSE is used to resume command processing for all clients that were paused by CLIENT PAUSE.
|
java.lang.String clientKill(java.lang.String ipPort)
ipPort
- The ip:port should match a line returned by the CLIENT LIST command (addr field).java.lang.String clientKill(java.lang.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 closedjava.lang.String clientGetname()
java.lang.String clientList()
java.lang.String clientList(ClientType type)
java.lang.String clientList(long... clientIds)
clientIds
- Unique 64-bit client IDsjava.lang.String clientInfo()
java.lang.String clientSetInfo(ClientAttributeOption attr, java.lang.String value)
attr
- the attr optionvalue
- the valuejava.lang.String clientSetname(java.lang.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|ERRORjava.lang.String clientPause(long timeout)
timeout
- WRITE|ALLjava.lang.String clientPause(long timeout, ClientPauseMode mode)
timeout
- Command timeoutmode
- WRITE|ALLjava.lang.String clientUnpause()
java.lang.String clientNoEvictOn()
java.lang.String clientNoEvictOff()
java.lang.String clientNoTouchOn()
java.lang.String clientNoTouchOff()
Copyright © 2023. All rights reserved.