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.



653
654
655
656
657
658
# File 'lib/redis/distributed.rb', line 653

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