Method: Redis::Distributed#getset

Defined in:
lib/redis/distributed.rb

#getset(key, value) ⇒ Object

Set the string value of a key and return its old value.



401
402
403
# File 'lib/redis/distributed.rb', line 401

def getset(key, value)
  node_for(key).getset(key, value)
end