Get the time to live (in seconds) for a key.
139 140 141
# File 'lib/redis/distributed.rb', line 139 def ttl(key) node_for(key).ttl(key) end