Skip to content

Commit

Permalink
Add doc for HFE
Browse files Browse the repository at this point in the history
  • Loading branch information
sundb committed May 30, 2024
1 parent f0fc05d commit 4346875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 4346875

Please sign in to comment.