Skip to content
Arpit Bhayani edited this page May 30, 2024 · 3 revisions

WATCH watches a DQL (Dice Query Language) query and notifies you in real-time.

>>> WATCH KEYS 5 "select $key, $value WHERE $key LIKE 'users:1:%' AND $event IS 'put_key';"
0) users:1:product_view:a
1) "{\"platform\":\"android\"}"  <--- value

The above statement subscribes to the connected client to watch for new keys matching the above pattern. The subscribers receive the data requested i.e. KEY, VALUE as a list.

Clone this wiki locally