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

Function get_conn

proxypool/processors/server.py:41–48  ·  view source on GitHub ↗

get redis client object :return:

()

Source from the content-addressed store, hash-verified

39
40
41def get_conn():
42 """
43 get redis client object
44 :return:
45 """
46 if not hasattr(g, 'redis'):
47 g.redis = RedisClient()
48 return g.redis
49
50
51def get_request_key():

Callers 3

get_proxyFunction · 0.85
get_proxy_allFunction · 0.85
get_countFunction · 0.85

Calls 1

RedisClientClass · 0.90

Tested by

no test coverage detected