Redis PEXPIREAT 命令

更新时间: 2019-07-07 15:54

Redis PEXPIREAT 命令用于设置 key 的过期时间,以毫秒计。

key 过期后将不再可用。

语法

redis 127.0.0.1:6379> PEXPIREAT KEY_NAME TIME_IN_MILLISECONDS_IN_UNIX_TIMESTAMP

返回值

  • 设置成功返回 1 。

  • 当 key 不存在或者不能为 key 设置过期时间时(比如在低于 2.1.3 版本的 Redis 中你尝试更新 key 的过期时间)返回 0 。

实例

127.0.0.1:6379> set domain www.codercto.com
OK
127.0.0.1:6379> pexpireat domain 1560924000000
(integer) 1
127.0.0.1:6379> ttl domain
(integer) 1954

查看更多 Redis key 命令

High-Performance Compilers for Parallel Computing

High-Performance Compilers for Parallel Computing

Michael Wolfe / Addison-Wesley / 1995-6-16 / USD 117.40

By the author of the classic 1989 monograph, Optimizing Supercompilers for Supercomputers, this book covers the knowledge and skills necessary to build a competitive, advanced compiler for parallel or......一起来看看 《High-Performance Compilers for Parallel Computing》 这本书的介绍吧!

JSON 在线解析

JSON 在线解析

在线 JSON 格式化工具

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具

HSV CMYK 转换工具

HSV CMYK互换工具