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.
637 638 639 640 641 642 |
# File 'lib/redis/distributed.rb', line 637 def sinterstore(destination, *keys) keys.flatten!(1) ensure_same_node(:sinterstore, [destination].concat(keys)) do |node| node.sinterstore(destination, keys) end end |