Method: Redis::Distributed#ttl

Defined in:
lib/redis/distributed.rb

#ttl(key) ⇒ Object

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