Method: Redis::Commands::Bitmaps#bitop
- Defined in:
- lib/redis/commands/bitmaps.rb
#bitop(operation, destkey, *keys) ⇒ Integer
Perform a bitwise operation between strings and store the resulting string in a key.
45 46 47 48 49 50 |
# File 'lib/redis/commands/bitmaps.rb', line 45 def bitop(operation, destkey, *keys) keys.flatten!(1) command = [:bitop, operation, destkey] command.concat(keys) send_command(command) end |