连接 Connection

AUTH [username] password
Authenticate to the server

CLIENT CACHING YES|NO
Instruct the server about tracking or not keys in the next request

CLIENT ID
Returns the client ID for the current connection

CLIENT INFO
Returns information about the current client connection.

CLIENT KILL [ip:port] [ID client-id] [TYPE normal|master|slave|pubsub] [USER username] [ADDR ip:port] [SKIPME yes/no]
Kill the connection of a client

CLIENT LIST [TYPE normal|master|replica|pubsub] [ID client-id [client-id ...]]
Get the list of client connections

CLIENT GETNAME
Get the current connection name

CLIENT GETREDIR
Get tracking notifications redirection client ID if any

CLIENT PAUSE timeout
Stop processing commands from clients for some time

CLIENT REPLY ON|OFF|SKIP
Instruct the server whether to reply to commands

CLIENT SETNAME connection-name
Set the current connection name

CLIENT TRACKING ON|OFF [REDIRECT client-id] [PREFIX prefix [PREFIX prefix ...]] [BCAST] [OPTIN] [OPTOUT] [NOLOOP]
Enable or disable server assisted client side caching support

CLIENT UNBLOCK client-id [TIMEOUT|ERROR]
Unblock a client blocked in a blocking command from a different connection

ECHO message
Echo the given string

HELLO protover [AUTH username password] [SETNAME clientname]
switch Redis protocol

PING [message]
Ping the server

QUIT
Close the connection

RESET
Reset the connection

SELECT index
Change the selected database for the current connection

powered by Gitbook© 2023 编外计划 | 最后修改: 2023-11-24 03:36:59

results matching ""

    No results matching ""