HEXPIREAT

Since 1.1.0Hashes

Syntax

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

Makes fields of the hash at key expire at a Unix time, in seconds. A time in the past deletes them at once (2). It takes the same conditions and gives the same replies as HEXPIRE.

Examples

> HSET s token abc
(integer) 1
> HEXPIREAT s 4102444800 FIELDS 1 token
1) (integer) 1
> HEXPIRETIME s FIELDS 1 token
1) (integer) 4102444800