MCPcopy Create free account
hub / github.com/InternLM/HuixiangDou / __init__

Method __init__

web/proxy/test.py:32–38  ·  view source on GitHub ↗
(self, name, namespace='HuixiangDou', **redis_kwargs)

Source from the content-addressed store, hash-verified

30class Queue:
31
32 def __init__(self, name, namespace='HuixiangDou', **redis_kwargs):
33 self.__db = redis.Redis(host=redis_host(),
34 port=redis_port(),
35 password=redis_passwd(),
36 charset='utf-8',
37 decode_responses=True)
38 self.key = '%s:%s' % (namespace, name)
39
40 def qsize(self):
41 """Return the approximate size of the queue."""

Callers

nothing calls this directly

Calls 3

redis_hostFunction · 0.70
redis_portFunction · 0.70
redis_passwdFunction · 0.70

Tested by

no test coverage detected