Skip to content

DOC-5412: update KSN page for ROS8.2 #1789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/develop/use/keyspace-notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ following table:
e Evicted events (events generated when a key is evicted for maxmemory)
m Key miss events (events generated when a key that doesn't exist is accessed)
n New key events (Note: not included in the 'A' class)
o Overwritten events (events generated every time a key is overwritten)
c Type-changed events (events generated every time a key's type changes)
A Alias for "g$lshztxed", so that the "AKE" string means all the events except "m" and "n".

At least `K` or `E` should be present in the string, otherwise no event
Expand Down Expand Up @@ -150,6 +152,8 @@ Different commands generate different kind of events according to the following
* Every time a key with a time to live associated is removed from the data set because it expired, an `expired` event is generated.
* 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.
* Every time a new key is added to the data set, a `new` event is generated.
* Every time a key is being overwritten, an `overwritten` event is generated.
* Every time a key's type changes, a `type_changed` event is generated.

**IMPORTANT** all the commands generate events only if the target key is really modified. For instance an [`SREM`]({{< relref "/commands/srem" >}}) deleting a non-existing element from a Set will not actually change the value of the key, so no event will be generated.

Expand Down