method
RedisClient.pfcount
): Promise<number>;
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s)
@param key
The first HyperLogLog key
@param moreKeys
Additional HyperLogLog keys (union cardinality)
@returns
Promise that resolves with the approximated number of unique elements
await redis.pfadd("hll", "a");
await redis.pfadd("hll", "b");
await redis.pfcount("hll"); // 2Referenced types
type KeyLike = string | ArrayBufferView | Blob