HPTTL

Since 1.1.0Hashes

Syntax

HPTTL key FIELDS numfields field [field ...]
  • Flags: readonly
  • ACL categories: @hash, @read, @slow
  • Arity: -5

HTTL in milliseconds.

Examples

> HSET s user ada
(integer) 1
> HPEXPIRE s 5000 FIELDS 1 user
1) (integer) 1
> HPTTL s FIELDS 1 user
1) (integer) 5000