Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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>
@powdahound
Copy link
Author

powdahound commented Sep 15, 2011

This was a slave instance. Oops!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment