CLIENT TRACKINGINFO

Since 1.1.0Server

Syntax

CLIENT TRACKINGINFO

Returns this connection's client-side caching state, as set with CLIENT TRACKING. Client libraries use it to check that tracking is set up as they asked.

The reply is three name-value pairs:

  • flags: off, or on with any of bcast, optin, optout, noloop, and caching-yes or caching-no while an CLIENT CACHING choice is pending for the next command.
  • redirect: -1 when tracking is off, 0 when invalidations come to this connection, or the ID of the connection they go to.
  • prefixes: the prefixes given in broadcast mode.

Examples

> CLIENT TRACKINGINFO
1) "flags"
2) 1) "off"
3) "redirect"
4) (integer) -1
5) "prefixes"
6) (empty array)
> CLIENT TRACKING ON BCAST PREFIX user: NOLOOP
OK
> CLIENT TRACKINGINFO
1) "flags"
2) 1) "on"
   2) "bcast"
   3) "noloop"
3) "redirect"
4) (integer) 0
5) "prefixes"
6) 1) "user:"