dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.8k stars 948 forks source link

HTTL: access expiration time of hashes #3026

Closed Le0Developer closed 5 months ago

Le0Developer commented 6 months ago

Is your feature request related to a problem? Please describe. I'm trying to access the expiration time of a hash created using HSETEX, but no such command exists.

Describe the solution you'd like HTTL key field which behaves like TTL key but for hashes.

Describe alternatives you've considered Tracking expiration time in an extra hash, but that just wastes storage for redundant information that already exists.

Related

687 which originally added HSETEX

romange commented 6 months ago

Seems we have the undocumented FIELDTTL command that does exactly that. Opened https://github.com/dragonflydb/dragonfly/issues/3026 for that

Le0Developer commented 5 months ago

Closing as dragonflydb/documentation#236 was merged. Thanks!