(self, name, namespace='HuixiangDou', **redis_kwargs)
| 30 | class 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.""" |
nothing calls this directly
no test coverage detected