Method: Redis::Distributed#sunionstore

Defined in:
lib/redis/distributed.rb

#sunionstore(destination, *keys) ⇒ Object

Add multiple sets and store the resulting set in a key.



677
678
679
680
681
682
# File 'lib/redis/distributed.rb', line 677

def sunionstore(destination, *keys)
  keys.flatten!(1)
  ensure_same_node(:sunionstore, [destination].concat(keys)) do |node|
    node.sunionstore(destination, keys)
  end
end