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.
|
java.lang.String |
clientKill(byte[] ipPort)
Close a given client connection.
|
long |
clientKill(ClientKillParams params)
Close a given client connection.
|
java.lang.String |
clientKill(java.lang.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.
|
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 |
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,
byte[] value)
client set info command
Since redis 7.2
|
java.lang.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.
|
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(byte[] 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
- connect info will be closedbyte[] clientGetnameBinary()
byte[] clientListBinary()
byte[] clientListBinary(ClientType type)
byte[] clientListBinary(long... clientIds)
clientIds
- Unique 64-bit client IDsbyte[] clientInfoBinary()
java.lang.String clientSetInfo(ClientAttributeOption attr, byte[] value)
attr
- the attr optionvalue
- the valuejava.lang.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|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()
Copyright © 2023. All rights reserved.