Method: Redis::Distributed#sinterstore
- Defined in:
- lib/redis/distributed.rb
#sinterstore(destination, *keys) ⇒ Object
Intersect multiple sets and store the resulting set in a key.
661 662 663 664 665 666 |
# File 'lib/redis/distributed.rb', line 661 def sinterstore(destination, *keys) keys.flatten!(1) ensure_same_node(:sinterstore, [destination].concat(keys)) do |node| node.sinterstore(destination, keys) end end |