修改本页

Redis 命令 客户端 文档 社区 下载 问题 支持 许可

PSETEX key milliseconds value

相关命令

Available since 2.6.0.

时间复杂度: O(1)

PSETEX works exactly like SETEX with the sole difference that the expire time is specified in milliseconds instead of seconds.

例子

redis> PSETEX mykey 1000 "Hello"

  1. OK

redis> PTTL mykey

  1. (integer) 999

redis> GET mykey

  1. "Hello"
redis>

Comments powered by Disqus

This website is open source software developed by Citrusbyte.

The Redis logo was designed by Carlos Prioglio. See more credits.

Sponsored by Redis Support