Skip to content

Instantly share code, notes, and snippets.

@fforbeck
Created May 23, 2013 20:17
Show Gist options
  • Save fforbeck/5639096 to your computer and use it in GitHub Desktop.
Save fforbeck/5639096 to your computer and use it in GitHub Desktop.
Redis TTL
redis> SET key "value"
OK
redis> EXPIRE key 15
(integer) 1
redis> TTL key
(integer) 10
redis> TTL key
(integer) 9
redis> TTL key
(integer) 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment