Created
August 21, 2013 02:00
-
-
Save huangzworks/6289598 to your computer and use it in GitHub Desktop.
测试一下数据库平均生存时长功能
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1:6379> FLUSHALL | |
OK | |
127.0.0.1:6379> SETEX k1 1000 v1 | |
OK | |
127.0.0.1:6379> INFO keyspace | |
# Keyspace | |
db0:keys=1,expires=1,avg_ttl=997453 | |
127.0.0.1:6379> SETEX k2 3000 v2 | |
OK | |
127.0.0.1:6379> INFO keyspace | |
# Keyspace | |
db0:keys=2,expires=2,avg_ttl=1951737 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment