HPEXPIRE

Since 1.1.0Hashes

Syntax

HPEXPIRE key milliseconds [NX | XX | GT | LT] FIELDS numfields field [field ...]
  • Flags: write
  • ACL categories: @hash, @slow, @write
  • Arity: -6

HEXPIRE with the time 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