CLIENT-GETREDIR(3valkey)

๐Ÿ“ฆ
version 9.0.6 ยท 2 versions
, in fedora 44

๐Ÿ’… CLIENT-GETREDIR โ€” the valkey manual page, bestie edition โœจ

okay so you're reading the Valkey Command Manual entry for client-getredir, and honestly? it's a lil cutie with a big job. let's get into it ๐Ÿซถ


โœจ NAME โœจ

client-getredir โ€” returns the client ID to which the connection's tracking notifications are redirected.

like. it tells you where the notifications are going. that's it. that's the whole vibe. ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

CLIENT GETREDIR

no args, no drama, no notes. just run it. ๐Ÿ’…


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so this command hands you back the client ID that we're redirecting our valkey-client-side-caching(7) tracking notifications to.

here's the lore: you set a client to redirect to when you use valkey-client-tracking(7) CLIENT TRACKING to turn tracking on. but โ€” and this is the important part โ€” we did not want to force all the client library implementations to have to remember the ID that notifications get redirected to. that's mean. that's not slay.

so this command exists to improve introspection and let clients check later whether redirection is even active, and if it is, which client ID it's heading towards. periodt. ๐Ÿ‘‘


๐Ÿ’– REPLY ๐Ÿ’–

you get one of these, depending on the situation:

ngl, 0 vs -1 is the whole plot twist here. one means "no redirect target", the other means "tracking isn't even on". don't mix them up bestie ๐Ÿ˜ญ

๐Ÿ”ฅ COMPLEXITY ๐Ÿ”ฅ

O(1)

constant time. instant. ate and left no crumbs. โญ


๐Ÿ‘‘ ACL CATEGORIES ๐Ÿ‘‘

@connection @slow


๐Ÿงš HISTORY ๐Ÿงš

  • Available since: 6.0.0

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

auth(3valkey), client(3valkey), client-caching(3valkey), client-capa(3valkey), client-getname(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)

the whole client command friend group, basically. go say hi. ๐Ÿ’œ


and that's a wrap!! this page is from valkey version 9.0.0, dated 2025-10-21. ty for reading my little manpage bestie, go redirect those notifications responsibly ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from