[フレーム]
Docs Pricing
Login Book a meeting Try Redis

CLIENT TRACKING

Syntax
CLIENT TRACKING <ON | OFF> [REDIRECT client-id] [PREFIX prefix
 [PREFIX prefix ...]] [BCAST] [OPTIN] [OPTOUT] [NOLOOP]
Available since:
Redis Open Source 6.0.0
Time complexity:
O(1). Some options may introduce additional complexity.
ACL categories:
@slow, @connection,

This command enables the tracking feature of the Redis server, that is used for server assisted client side caching.

When tracking is enabled Redis remembers the keys that the connection requested, in order to send later invalidation messages when such keys are modified. Invalidation messages are sent in the same connection (only available when the RESP3 protocol is used) or redirected in a different connection (available also with RESP2 and Pub/Sub). A special broadcasting mode is available where clients participating in this protocol receive every notification just subscribing to given key prefixes, regardless of the keys that they requested. Given the complexity of the argument please refer to the main client side caching documentation for the details. This manual page is only a reference for the options of this subcommand.

In order to enable tracking, use:

CLIENT TRACKING on ... options ...

The feature will remain active in the current connection for all its life, unless tracking is turned off with CLIENT TRACKING off at some point.

The following are the list of options that modify the behavior of the command when enabling tracking:

Return information

Simple string reply: OK if the connection was successfully put in tracking mode or if the tracking mode was successfully disabled. Otherwise, an error is returned.
RATE THIS PAGE
Back to top ↑

AltStyle によって変換されたページ (->オリジナル) /