Skip to content
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

Add doc for Hash Field Expiration #2718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion commands/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ Here is the meaning of all fields in the **stats** section:
* `sync_full`: The number of full resyncs with replicas
* `sync_partial_ok`: The number of accepted partial resync requests
* `sync_partial_err`: The number of denied partial resync requests
* `expired_hash_fields`: The number of hash fields expiration events
* `expired_keys`: Total number of key expiration events
* `expired_stale_perc`: The percentage of keys probably expired
* `expired_time_cap_reached_count`: The count of times that active expiry cycles have stopped early
Expand Down Expand Up @@ -444,7 +445,7 @@ The statistics are the number of keys, and the number of keys with an expiration

For each database, the following line is added:

* `dbXXX`: `keys=XXX,expires=XXX`
* `dbXXX`: `keys=XXX,expires=XXX,avg_ttl=XXX,hashes_with_expiry_fields=XXX`

The **debug** section contains experimental metrics, which might change or get removed in future versions.
It won't be included when `INFO` or `INFO ALL` are called, and it is returned only when `INFO DEBUG` is used.
Expand Down
2 changes: 2 additions & 0 deletions docs/manual/keyspace-notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ Different commands generate different kind of events according to the following
* `HINCRBY` generates an `hincrby` event.
* `HINCRBYFLOAT` generates an `hincrbyfloat` event.
* `HDEL` generates a single `hdel` event, and an additional `del` event if the resulting hash is empty and the key is removed.
* `HEXPIRE`, `HEXPIREAT`, `HPEXPIRE`, `HPEXPIREAT` commands all generate `hexpire` events.
* `HPERSIST` generates a single `hpersist` events.
* `SADD` generates a single `sadd` event, even in the variadic case.
* `SREM` generates a single `srem` event, and an additional `del` event if the resulting set is empty and the key is removed.
* `SMOVE` generates an `srem` event for the source key, and an `sadd` event for the destination key.
Expand Down
Loading