dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

HTTL: access expiration time of hashes

Open Le0Developer opened this issue 1 year ago • 1 comments

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

Le0Developer avatar May 08 '24 09:05 Le0Developer

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

romange avatar May 11 '24 19:05 romange

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

Le0Developer avatar May 15 '24 08:05 Le0Developer