温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/RedisClient/setex
点击访问原文链接

RedisClient.setex method | Bun module | Bun

RedisClient.setex method | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/RedisClient/setexMsetex

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/RedisClient/setexMsetex

method

RedisClient.setexsetex(key: KeyLike,seconds: number,value: KeyLike): Promise'OK'>;

Set key to hold the string value with expiration time in seconds

@param key

The key to set

@param seconds

The expiration time in seconds

@param value

The value to set

@returns

Promise that resolves with "OK" on success

await redis.setex("mykey", 10, "Hello");
// Key will expire after 10 seconds
Referenced typestype KeyLike = string | ArrayBufferView | Blob

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

RedisClient.setex method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method bun.RedisClient.setex | Bun