Get the value of a key and optionally set its expiration
method
RedisClient.getex
The key to get
Promise that resolves with the value of the key, or null if the key doesn't exist
Get the value of a key and set its expiration in seconds
The key to get
Set the specified expire time, in seconds
The number of seconds until expiration
Promise that resolves with the value of the key, or null if the key doesn't exist
Get the value of a key and set its expiration in milliseconds
The key to get
Set the specified expire time, in milliseconds
The number of milliseconds until expiration
Promise that resolves with the value of the key, or null if the key doesn't exist
Get the value of a key and set its expiration at a specific Unix timestamp in seconds
The key to get
Set the specified Unix time at which the key will expire, in seconds
The Unix timestamp in seconds
Promise that resolves with the value of the key, or null if the key doesn't exist
Get the value of a key and set its expiration at a specific Unix timestamp in milliseconds
The key to get
Set the specified Unix time at which the key will expire, in milliseconds
The Unix timestamp in milliseconds
Promise that resolves with the value of the key, or null if the key doesn't exist