Bitmap
BITPOS
Find the position of the first set or clear bit (bit with a value of 1 or 0) in a Redis string key.
Arguments
key
string
requiredThe key to search in.
bit
0 | 1
requiredThe key to store the result of the operation in.
start
number
The index to start searching at.
end
number
The index to stop searching at.
Response
The index of the first occurrence of the bit in the string.