Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (35 loc) · 1.37 KB

File metadata and controls

54 lines (35 loc) · 1.37 KB
code type title description
true
page
pexpireat
MemoryStorage:pexpireat

pexpireat

Sets an expiration timestamp on a key. After the timestamp has been reached, the key will automatically be deleted.
The timestamp parameter accepts an Epoch time value, in milliseconds.

[Redis documentation]


pexpireat(key, timestamp, [options], [callback])

Arguments Type Description
key string Key identifier
timestamp int Key's expiration timestamp, in milliseconds
options JSON Object Optional parameters
callback function Callback

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Return Value

Returns the MemoryStorage object to allow chaining.


Callback Response

Returns a boolean specifying if the operation was successful or not.

Usage

<<< ./snippets/pexpireat-1.java

Callback response:

true