kevy

BITCOUNT

Count set bits in a string, optionally over a byte range.

SyntaxBITCOUNT key [start end]
Groupstring
Arity-2
Since1.0.0
Flagsreadonly
ComplexityO(N) over the counted bytes
Redis compatibilitydiffers: the BYTE / BIT unit argument of Redis 7.0 is not accepted — ranges are byte offsets

← All commands