Method: Redis#sunionstore

Defined in:
lib/redis.rb

#sunionstore(destination, *keys) ⇒ Fixnum

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

Parameters:

  • destination (String)

    destination key

  • keys (String, Array<String>)

    keys pointing to sets to unify

Returns:

  • (Fixnum)

    number of elements in the resulting set



748
749
750
751
752
# File 'lib/redis.rb', line 748

def sunionstore(destination, *keys)
  synchronize do
    @client.call [:sunionstore, destination, *keys]
  end
end