Set key to hold the string value with expiration time in seconds
RedisClient.setex method | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/RedisClient/setexMsetex BuildDocsReferenceGuidesBlogDiscord /Bun/RedisClient/setexMsetex RedisClient.setexsetex(key: KeyLike,seconds: number,value: KeyLike): Promise'OK'>; @param key @param seconds @param value @returns Referenced typestype KeyLike = string | ArrayBufferView | Blob
Search the reference...
/
method
The key to set
The expiration time in seconds
The value to set
Promise that resolves with "OK" on success
await redis.setex("mykey", 10, "Hello");
// Key will expire after 10 seconds
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →RedisClient.setex method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method bun.RedisClient.setex | Bun