Skip to content

Commit 4346875

Browse files
committed
Add doc for HFE
1 parent f0fc05d commit 4346875

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

commands/info.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ Here is the meaning of all fields in the **stats** section:
266266
* `sync_full`: The number of full resyncs with replicas
267267
* `sync_partial_ok`: The number of accepted partial resync requests
268268
* `sync_partial_err`: The number of denied partial resync requests
269+
* `expired_hash_fields`: The number of hash fields expiration events
269270
* `expired_keys`: Total number of key expiration events
270271
* `expired_stale_perc`: The percentage of keys probably expired
271272
* `expired_time_cap_reached_count`: The count of times that active expiry cycles have stopped early
@@ -444,7 +445,7 @@ The statistics are the number of keys, and the number of keys with an expiration
444445

445446
For each database, the following line is added:
446447

447-
* `dbXXX`: `keys=XXX,expires=XXX`
448+
* `dbXXX`: `keys=XXX,expires=XXX,avg_ttl=XXX,hashes_with_expiry_fields=XXX`
448449

449450
The **debug** section contains experimental metrics, which might change or get removed in future versions.
450451
It won't be included when `INFO` or `INFO ALL` are called, and it is returned only when `INFO DEBUG` is used.

docs/manual/keyspace-notifications.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ Different commands generate different kind of events according to the following
116116
* `HINCRBY` generates an `hincrby` event.
117117
* `HINCRBYFLOAT` generates an `hincrbyfloat` event.
118118
* `HDEL` generates a single `hdel` event, and an additional `del` event if the resulting hash is empty and the key is removed.
119+
* `HEXPIRE`, `HEXPIREAT`, `HPEXPIRE`, `HPEXPIREAT` commands all generate `hexpire` events.
120+
* `HPERSIST` generates a single `hpersist` events.
119121
* `SADD` generates a single `sadd` event, even in the variadic case.
120122
* `SREM` generates a single `srem` event, and an additional `del` event if the resulting set is empty and the key is removed.
121123
* `SMOVE` generates an `srem` event for the source key, and an `sadd` event for the destination key.

0 commit comments

Comments
 (0)