Skip to content

Commit bfeca4c

Browse files
authored
Documents streams keyspace events (redis#1215)
1 parent 66e7fe4 commit bfeca4c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

topics/notifications.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ following table:
7777
s Set commands
7878
h Hash commands
7979
z Sorted set commands
80+
t Stream commands
8081
x Expired events (events generated every time a key expires)
8182
e Evicted events (events generated when a key is evicted for maxmemory)
82-
A Alias for g$lshzxe, so that the "AKE" string means all the events.
83+
A Alias for g$lshztxe, so that the "AKE" string means all the events.
8384

8485
At least `K` or `E` should be present in the string, otherwise no event
8586
will be delivered regardless of the rest of the string.
@@ -128,6 +129,14 @@ Different commands generate different kind of events according to the following
128129
* `ZREMBYSCORE` generates a single `zrembyscore` event. When the resulting sorted set is empty and the key is generated, an additional `del` event is generated.
129130
* `ZREMBYRANK` generates a single `zrembyrank` event. When the resulting sorted set is empty and the key is generated, an additional `del` event is generated.
130131
* `ZINTERSTORE` and `ZUNIONSTORE` respectively generate `zinterstore` and `zunionstore` events. In the special case the resulting sorted set is empty, and the key where the result is stored already exists, a `del` event is generated since the key is removed.
132+
* `XADD` generates an `xadd` event, possibly followed an `xtrim` event when used with the `MAXLEN` subcommand.
133+
* `XDEL` generates a single `xdel` event even when multiple entries are are deleted.
134+
* `XGROUP CREATE` generates an `xgroup-create` event.
135+
* `XGROUP DELCONSUMER` generates an `xgroup-delconsumer` event.
136+
* `XGROUP DESTROY` generates an `xgroup-destroy` event.
137+
* `XGROUP SETID` generates an `xgroup-setid` event.
138+
* `XSETID` generates an `xsetid` event.
139+
* `XTRIM` generates an `xtrim` event.
131140
* Every time a key with a time to live associated is removed from the data set because it expired, an `expired` event is generated.
132141
* Every time a key is evicted from the data set in order to free memory as a result of the `maxmemory` policy, an `evicted` event is generated.
133142

0 commit comments

Comments
 (0)