DiceDB / dice

DiceDB is a redis-compliant, in-memory, real-time, and reactive database optimized for modern hardware and for building and scaling truly real-time applications.
https://dicedb.io/
Other
6.41k stars 1.01k forks source link

Add support for `PFCOUNT.WATCH` command #1133

Open JyotinderSingh opened 1 day ago

JyotinderSingh commented 1 day ago

Add support for reactive queries on the existing PFCOUNT command by introducing PFCOUNT.WATCH.

This command should send push-responses to subscribed clients whenever the data inside the respective hash set changes.

As a part of this feature, you are also required to add support for the same to the dicedb-go SDK inside the watch_command.go file.

Reference

  1. You may refer to #1047 to understand the changes required to support this command.
  2. 924 provides more background on the feature's underlying implementation (but may not be directly relevant to this issue)

Testing

  1. Ensure integration tests are added, you can refer to existing .WATCH integration tests.
  2. Integration tests should include both resp tests and SDK tests.
iamskp11 commented 1 day ago

Would like to work on this @JyotinderSingh .pls assign

JyotinderSingh commented 1 day ago

Would like to work on this @JyotinderSingh .pls assign

Assigned.