Mbitcount
Bun

method

RedisClient.bitcount

key: KeyLike
): Promise<number>;

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

@param key

The key to count bits in

@returns

Promise that resolves with the number of bits set to 1

Referenced types

type KeyLike = string | ArrayBufferView | Blob