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