Method: Redis#ttl

Defined in:
lib/redis.rb

#ttl(key) ⇒ Object

Get the time to live for a key.



714
715
716
717
718
# File 'lib/redis.rb', line 714

def ttl(key)
  synchronize do
    @client.call [:ttl, key]
  end
end