ZCARD.WATCH
Syntax
Section titled “Syntax”ZCARD.WATCH key
ZCARD.WATCH creates a query subscription over the ZCARD command. The client invoking the command will receive the output of the ZCARD command (not just the notification) whenever the value against the key is updated.
You can update the key in any other client. The ZCARD.WATCH client will receive the updated value.
Examples
Section titled “Examples”client1:7379> ZADD users 1 alice 2 bob 3 charlieOK 3client1:7379> ZCARD.WATCH usersentered the watch mode for ZCARD.WATCH users
client2:7379> ZADD users 4 danielOK 1
client1:7379> ...entered the watch mode for ZCARD.WATCH usersOK [fingerprint=8372868704969517043] 4