CLIENT SETINFO · Valkey

CLIENT SETINFO

Sets information specific to the client or connection.

Usage

CLIENT SETINFO <LIB-NAME libname | LIB-VER libver>

Description

The CLIENT SETINFO command assigns various info attributes to the current connection which are displayed in the output of CLIENT LIST and CLIENT INFO.

Client libraries are expected to pipeline this command after authentication on all connections and ignore failures since they could be connected to an older version that doesn’t support them.

Currently the supported attributes are: * lib-name - meant to hold the name of the client library that’s in use. * lib-ver - meant to hold the client library’s version.

There is no limit to the length of these attributes. However it is not possible to use spaces, newlines, or other non-printable characters that would violate the format of the CLIENT LIST reply.

Note that these attributes are not cleared by the RESET command.

Reply

Simple string reply: OK if the attribute name was successfully set.

Complexity

O(1)

ACL Categories

@connection @slow

History

See also

AUTH, CLIENT, CLIENT CACHING, CLIENT CAPA, CLIENT GETNAME, CLIENT GETREDIR, CLIENT HELP, CLIENT ID, CLIENT INFO, CLIENT KILL, CLIENT LIST, CLIENT NO-EVICT, CLIENT NO-TOUCH, CLIENT PAUSE, CLIENT REPLY, CLIENT SETNAME, CLIENT TRACKING, CLIENT TRACKINGINFO, CLIENT UNBLOCK, CLIENT UNPAUSE, ECHO, HELLO, PING, RESET, SELECT.