Set key to hold the string value
method
RedisClient.set
The key to set
The value to set
Promise that resolves with "OK" on success
The key to set
The value to set
Set the specified expire time, in seconds
Promise that resolves with "OK" on success
The key to set
The value to set
Set the specified expire time, in milliseconds
Promise that resolves with "OK" on success
Set key to hold the string value with expiration at a specific Unix timestamp
The key to set
The value to set
Set the specified Unix time at which the key will expire, in seconds
Promise that resolves with "OK" on success
Set key to hold the string value with expiration at a specific Unix timestamp
The key to set
The value to set
Set the specified Unix time at which the key will expire, in milliseconds
Promise that resolves with "OK" on success
The key to set
The value to set
Only set the key if it does not already exist
Promise that resolves with "OK" on success, or null if the key already exists
The key to set
The value to set
Only set the key if it already exists
Promise that resolves with "OK" on success, or null if the key does not exist
The key to set
The value to set
Return the old string stored at key, or null if key did not exist
Promise that resolves with the old value, or null if key did not exist
The key to set
The value to set
Retain the time to live associated with the key
Promise that resolves with "OK" on success
Set key to hold the string value with various options
The key to set
The value to set
Array of options (EX, PX, EXAT, PXAT, NX, XX, KEEPTTL, GET)
Promise that resolves with "OK" on success, null if NX/XX condition not met, or the old value if GET is specified