Created
September 15, 2011 22:35
-
-
Save powdahound/1220669 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
dev:~ redis-cli | |
redis 127.0.0.1:6379> get foo | |
(nil) | |
redis 127.0.0.1:6379> set foo bar | |
OK | |
redis 127.0.0.1:6379> get foo | |
"bar" | |
redis 127.0.0.1:6379> expire foo 5 | |
(integer) 1 | |
redis 127.0.0.1:6379> ttl foo | |
(integer) 3 | |
redis 127.0.0.1:6379> ttl foo | |
(integer) 2 | |
redis 127.0.0.1:6379> ttl foo | |
(integer) 1 | |
redis 127.0.0.1:6379> ttl foo | |
(integer) 0 | |
redis 127.0.0.1:6379> ttl foo | |
(integer) -1 | |
redis 127.0.0.1:6379> get foo | |
"bar" | |
redis 127.0.0.1:6379> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a slave instance. Oops!