Method: Redis#sinterstore

Defined in:
lib/redis.rb

#sinterstore(destination, *keys) ⇒ Fixnum

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

Parameters:

  • destination key

  • keys pointing to sets to intersect

Returns:

  • number of elements in the resulting set



727
728
729
730
731
# File 'lib/redis.rb', line 727

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