Learn R Programming

rredis (version 1.7.0)

redisBitOp: Redis BITOP - execute bitoperations on multiple bitsets

Description

Perform a bitwise operation between multiple keys (containing string values) and store the result in the destination key

Usage

redisBitOp(operation, destkey, sourcekeys, ...)

Arguments

operation
bit operation as character: 'AND', 'OR', 'XOR', 'NOT'
destkey
destination key where the resulting bit operation will be stored
sourcekeys
one or more source keys subject to the bit operations
...
Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

the counted bits as an integer value