class Redis

def bitop(operation, destkey, *keys)

Returns:
  • (Integer) - the length of the string stored in `destkey`

Parameters:
  • keys (String, Array) -- one or more source keys to perform `operation`
  • destkey (String) -- destination key
  • operation (String) -- e.g. `and`, `or`, `xor`, `not`
def bitop(operation, destkey, *keys)
  synchronize do |client|
    client.call([:bitop, operation, destkey, *keys])
  end
end