Method: Redis::Distributed#pttl

Defined in:
lib/redis/distributed.rb

#pttl(key) ⇒ Object

Get the time to live (in milliseconds) for a key.



149
150
151
# File 'lib/redis/distributed.rb', line 149

def pttl(key)
  node_for(key).pttl(key)
end