Skip to content

Home / node / Commands / enumerations / TimeUnit @valkey/valkey-glide


@valkey/valkey-glide / Commands / TimeUnit

Enumeration: TimeUnit

Time unit representation which is used in optional arguments for getex and set command.

Enumeration Members

Milliseconds

Milliseconds: "PX"

Set the specified expire time, in milliseconds. Equivalent to PX in the VALKEY API.


Seconds

Seconds: "EX"

Set the specified expire time, in seconds. Equivalent to EX in the VALKEY API.


UnixMilliseconds

UnixMilliseconds: "PXAT"

Set the specified Unix time at which the key will expire, in milliseconds. Equivalent to PXAT in the VALKEY API.


UnixSeconds

UnixSeconds: "EXAT"

Set the specified Unix time at which the key will expire, in seconds. Equivalent to EXAT in the VALKEY API.