Skip to content

Instantly share code, notes, and snippets.

@powdahound
Created September 15, 2011 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save powdahound/1220669 to your computer and use it in GitHub Desktop.
Save powdahound/1220669 to your computer and use it in GitHub Desktop.
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

This was a slave instance. Oops!

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