Set key to hold the string value
Search the reference...
/
method
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
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →RedisClient.set method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.RedisClient.set | Bun