Method: Redis#pttl
- Defined in:
- lib/redis.rb
#pttl(key) ⇒ Fixnum
Get the time to live (in milliseconds) for a key.
362 363 364 365 366 |
# File 'lib/redis.rb', line 362 def pttl(key) synchronize do |client| client.call([:pttl, key]) end end |