Method: Redis::Commands::Sets#sdiffstore

Defined in:
lib/redis/commands/sets.rb

#sdiffstore(destination, *keys) ⇒ Integer

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

Parameters:

  • destination (String)

    destination key

  • keys (String, Array<String>)

    keys pointing to sets to subtract

Returns:

  • (Integer)

    number of elements in the resulting set



147
148
149
# File 'lib/redis/commands/sets.rb', line 147

def sdiffstore(destination, *keys)
  send_command([:sdiffstore, destination, *keys])
end