Method: Redis::Distributed#setex
- Defined in:
- lib/redis/distributed.rb
#setex(key, ttl, value) ⇒ Object
Set the time to live in seconds of a key.
296 297 298 |
# File 'lib/redis/distributed.rb', line 296 def setex(key, ttl, value) node_for(key).setex(key, ttl, value) end |