code | type | title | description |
---|---|---|---|
true |
page |
expireat |
MemoryStorage:expireat |
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.
Arguments | Type | Description |
---|---|---|
key |
string | Key identifier |
timestamp |
int | Expiration timestamp |
options |
JSON Object | Optional parameters |
callback |
function | Callback |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns the MemoryStorage
object to allow chaining.
Returns a boolean specifying if the operation was successful or not.
<<< ./snippets/expireat-1.java
Callback response:
true