Redis · Command
BITCOUNT
BITCOUNT returns the number of 1 bits in a Redis string. It can inspect the whole value or an inclusive range of bytes or bits.
Last updated
- Since
- 2.6.0
Syntax
BITCOUNT key [start end [BYTE | BIT]]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BITFIELDBITFIELD_ROBITOPBITPOSGETBITSETBIT