CLIENT-CAPA(3valkey)
π CLIENT-CAPA β bestie, it's in the valkey(3valkey) manual π
okay so real talk, this is CLIENT-CAPA, a page straight out of the Valkey Command Manual. She's giving "let the server know what you can handle" and honestly? iconic behavior. let's get into it π«Ά
β¨ NAME β¨
client-capa β a client claims its capability. yes that's the whole name and yes she ate π
β¨ SYNOPSIS β¨
CLIENT CAPA capability [capability...]
β¨ DESCRIPTION β¨
so here's the vibe: clients can declare their capabilities to Valkey using the CLIENT CAPA command, and Valkey will adjust the corresponding features for the current connection based on whatever the client declared. it's literally just you telling the server "hey, I can do this" and the server going "say less" π₯
you can declare multiple capabilities in the same command, no problem. and here's the chill part β if any capabilities are unrecognized, Valkey will just ignore them instead of returning an error. no drama, no error message, just vibes β¨
the capabilities currently supported are:
redirectβ this one means the client is capable of handling redirect messages. so when you're accessing a replica node in standalone mode and a data operation happens (read or write commands), Valkey will return-REDIRECT primary-ip:portto this connection. and bestie, listen β theprimary-ipcan be an IPv6, which itself contains colons π« so to properly parse the ip and port, a client needs to locate the last colon. that's the trick, that's the whole thing. also, using thevalkey-readonly(7)READONLYcommand can enable this connection to execute read commands on the replica node. lowkey useful, highkey important π
β¨ REPLY β¨
valkey-protocol(7) Simple string reply: OK.
that's it. that's the reply. OK and we move on π
β¨ COMPLEXITY β¨
O(1) β constant time, no notes, she's efficient π
β¨ ACL CATEGORIES β¨
@connection @slow
β¨ HISTORY β¨
- Available since: 8.0.0 β
β¨ SEE ALSO β¨
go read these too, bestie, they're all part of the family:
auth(3valkey)client(3valkey)client-caching(3valkey)client-getname(3valkey)client-getredir(3valkey)client-help(3valkey)client-id(3valkey)client-import-source(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-setinfo(3valkey)client-setname(3valkey)client-tracking(3valkey)client-trackinginfo(3valkey)client-unblock(3valkey)client-unpause(3valkey)echo(3valkey)hello(3valkey)ping(3valkey)quit(3valkey)reset(3valkey)select(3valkey)
and that's the whole page, you're welcome πβ¨
this was Valkey 9.0.0, dated 2025-10-21 β go forth and declare your capabilities, bestie, the server is ready for you ππ¦π
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms