MCPcopy Index your code
hub / github.com/Python3WebSpider/ProxyPool / count

Method count

proxypool/storages/redis.py:129–134  ·  view source on GitHub ↗

get count of proxies :return: count, int

(self, redis_key=REDIS_KEY)

Source from the content-addressed store, hash-verified

127 return self.db.zadd(redis_key, {proxy.string(): proxy_score_max})
128
129 def count(self, redis_key=REDIS_KEY) -> int:
130 """
131 get count of proxies
132 :return: count, int
133 """
134 return self.db.zcard(redis_key)
135
136 def all(self, redis_key=REDIS_KEY, proxy_score_min=PROXY_SCORE_MIN, proxy_score_max=PROXY_SCORE_MAX) -> List[Proxy]:
137 """

Callers 3

run_testsMethod · 0.80
get_countFunction · 0.80
is_fullMethod · 0.80

Calls

no outgoing calls

Tested by 1

run_testsMethod · 0.64