50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

rredis (version 1.6.9)

redisBitCount: Redis BITCOUNT - count all bits in key

Description

Count the number of set bits (population counting) in a string.

Usage

redisBitCount(key)

Arguments

key
redis key

Value

  • the counted bits as an integer value