client-setinfo.3valkey - Man Page
Sets information specific to the client or connection.
Synopsis
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
valkey-protocol(7) Simple string reply: OK
if the attribute name was successfully set.
Complexity
O(1)
Acl Categories
@connection @slow
History
- Available since: 7.2.0
See Also
auth(3valkey), client(3valkey), client-caching(3valkey), client-capa(3valkey), client-getname(3valkey), client-getredir(3valkey), client-help(3valkey), client-id(3valkey), client-info(3valkey), client-kill(3valkey), client-list(3valkey), client-no-evict(3valkey), client-no-touch(3valkey), client-pause(3valkey), client-reply(3valkey), client-setname(3valkey), client-tracking(3valkey), client-trackinginfo(3valkey), client-unblock(3valkey), client-unpause(3valkey), echo(3valkey), hello(3valkey), ping(3valkey), reset(3valkey), select(3valkey)