Method: Redis::Distributed#bitop
- Defined in:
- lib/redis/distributed.rb
#bitop(operation, destkey, *keys) ⇒ Object
Perform a bitwise operation between strings and store the resulting string in a key.
388 389 390 391 392 393 |
# File 'lib/redis/distributed.rb', line 388 def bitop(operation, destkey, *keys) keys.flatten!(1) ensure_same_node(:bitop, [destkey] + keys) do |node| node.bitop(operation, destkey, keys) end end |