Method: Redis#getset
- Defined in:
- lib/redis.rb
#getset(key, value) ⇒ Object
Set the string value of a key and return its old value.
176 177 178 179 180 |
# File 'lib/redis.rb', line 176 def getset(key, value) synchronize do @client.call [:getset, key, value] end end |