Redis | redis-cli INFO / avg_ttl value
来源:互联网 发布:网络导购员 编辑:程序博客网 时间:2024/06/07 00:40
Redis | redis-cli INFO / avg_ttl value
up vote1down votefavorite
when the command redis-cli INFO
is run, some of the returned values indicates the avg_ttl
. I'm unsure what unit of time this is represented in:
Example:
Keyspace
db0:keys=706818,expires=228745,avg_ttl=1521990750
amazon-ec2 redis nosql
add a comment
1 Answer
activeoldestvotes
up vote3down vote
This is a bit confusing indeed.
- the TTL command return value is in seconds
- PTTL command return value is in milliseconds
- avg_ttl from INFO is in milliseconds
Also, note that this average value avg_ttl is just an estimate based on random check of keys.
what's mean of avg_ttl = 0 ? – Chinaxing Nov 11 '15 at 8:24
0 0
- Redis | redis-cli INFO / avg_ttl value
- Redis-CLI
- Redis-cli
- Redis入门 redis-cli
- redis-cli 连接redis
- Redis - redis-cli 参数
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- Redis 客户端redis-cli使用
- [Redis] redis-cli 命令总结
- [Redis] redis-cli 命令总结
- cassandra修改表的primary
- 时间联动 动态根据参照时间进行累加
- db2 存储过程动态游标及函数返回值总结
- KMP 模板
- 【文件的读写操作】
- Redis | redis-cli INFO / avg_ttl value
- 我遇到的android.content.res.Resources$NotFoundException的解决方案
- POJ 3084 - Panic Room【网络流 最小割】
- Android 自定义 view 详解
- Swift字符转Ascii
- HDU 5763(Another Meaning kmp+dp)
- HDU 5770 Treasure
- HDU 5456 Matches Puzzle Game(2015 ACM/ICPC Asia Regional Shenyang Online)
- Android 双击以及连续多次点击事件系统自带判断方法