polyswarmclient.ratelimit.redis
¶
Module Contents¶
-
class
polyswarmclient.ratelimit.redis.
RedisRateLimit
(redis, queue, limit, key_manager=None)[source]¶ Bases:
polyswarmclient.ratelimit.abstractratelimit.AbstractRateLimit
Third Party limitation where redis is used to track a daily scan limit. Keys are based on the current date, and will expire the next day.
This implementation is used in the producer and worker since they use Redis already.