public interface ClientBinaryCommands
Modifier and Type | Method and Description |
---|---|
byte[] |
clientGetnameBinary()
Returns the name of the current connection as set by CLIENT SETNAME
|
long |
clientId()
Returns the ID of the current connection.
|
byte[] |
clientInfoBinary()
Returns information and statistics about the current client connection
in a mostly human readable format.
|
String |
clientKill(byte[] ipPort)
Close a given client connection.
|
long |
clientKill(ClientKillParams params)
Close a given client connection.
|
String |
clientKill(String ip,
int port)
Close a given client connection.
|
byte[] |
clientListBinary()
Returns information and statistics about the client connections server
in a mostly human readable format.
|
byte[] |
clientListBinary(ClientType type)
Returns information and statistics about the client connections server
in a mostly human readable format filter by client type.
|
byte[] |
clientListBinary(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(byte[] 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(byte[] 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
- connect info will be closedbyte[] clientGetnameBinary()
byte[] clientListBinary()
byte[] clientListBinary(ClientType type)
byte[] clientListBinary(long... clientIds)
clientIds
- Unique 64-bit client IDsbyte[] clientInfoBinary()
String clientSetname(byte[] 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.