Jack
Jack

Reputation: 1941

Is it possible to decrement a HyperLogLog set in Redis

Let's say that i have a hyperloglog in redis which counts messages is there any provisions whereby I can to some degree account for delete messages?

Upvotes: 8

Views: 2163

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49942

No, the HyperLogLog doesn't support the concept of deletion. Instead, use a different counter (could be an integer, Set or HyperLogLog) and subtract the totals.

Upvotes: 12

Related Questions