swh.counters.redis module

class swh.counters.redis.Redis(host: str)[source]

Bases: object

Redis based implementation of the counters. It uses one HyperLogLog collection per counter

property redis_client: redis.client.Redis
check()[source]
add(collection: str, keys: Iterable[Any]) None[source]
get_count(collection: str) int[source]
get_counts(collections: List[str]) Dict[str, int][source]
get_counters() Iterable[str][source]