class Redis
def ttl(key)
-
(Fixnum)
- remaining time to live in seconds, or -1 if the
Parameters:
-
key
(String
) --
def ttl(key) synchronize do |client| client.call [:ttl, key] end end
(Fixnum)
- remaining time to live in seconds, or -1 if the
key
(String
)
--
def ttl(key) synchronize do |client| client.call [:ttl, key] end end