Method: Redis#psetex
- Defined in:
- lib/redis.rb
#psetex(key, ttl, value) ⇒ Object
Set the time to live in milliseconds of a key.
701 702 703 704 705 |
# File 'lib/redis.rb', line 701 def psetex(key, ttl, value) synchronize do |client| client.call([:psetex, key, ttl, value.to_s]) end end |