Method: Redis#setex
- Defined in:
- lib/redis.rb
#setex(key, ttl, value) ⇒ Object
Set the value and expiration of a key.
1514 1515 1516 1517 1518 |
# File 'lib/redis.rb', line 1514 def setex(key, ttl, value) synchronize do @client.call [:setex, key, ttl, value] end end |