BITPOSReturn the position of the first bit set to 0 or 1.
| Syntax | BITPOS key bit [start [end]] |
| Group | string |
| Arity | -3 |
| Since | 1.0.0 |
| Flags | readonly |
| Complexity | O(N) over the scanned bytes |
| Redis compatibility | differs: the BYTE / BIT unit argument of Redis 7.0 is not accepted — ranges are byte offsets |