Set key to hold the string value
Symbol
RedisClient.set
The key to set
The value to set
Promise that resolves with "OK" on success
Set key to hold the string value with expiration
The key to set
The value to set
Set the specified expire time, in seconds
Promise that resolves with "OK" on success
Set key to hold the string value with expiration
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
Set key to hold the string value only if key does not exist
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
Set key to hold the string value only if 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
Set key to hold the string value and return the old value
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
Set key to hold the string value and retain the time to live
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
Referenced types
class Blob
A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
Returns a promise that resolves to the contents of the blob as an ArrayBuffer
Returns a promise that resolves to the contents of the blob as a Uint8Array (array of bytes) its the same as
new Uint8Array(await blob.arrayBuffer())
Read the data from the blob as a FormData object.
This first decodes the data from UTF-8, then parses it as a
multipart/form-data
body or aapplication/x-www-form-urlencoded
body.The
type
property of the blob is used to determine the format of the body.This is a non-standard addition to the
Blob
API, to make it conform more closely to theBodyMixin
API.Read the data from the blob as a JSON object.
This first decodes the data from UTF-8, then parses it as JSON.
Returns a readable stream of the blob's contents
Returns a promise that resolves to the contents of the blob as a string