logging-conf-fix2
This commit is contained in:
parent
ced6d12468
commit
57798dc0f7
|
@ -69,6 +69,7 @@ class RedisService:
|
|||
|
||||
async def scan_iter(self, pattern="*"):
|
||||
"""Asynchronously iterate over keys matching the given pattern."""
|
||||
if self._client:
|
||||
cursor = "0"
|
||||
while cursor != 0:
|
||||
cursor, keys = await self._client.scan(cursor=cursor, match=pattern)
|
||||
|
|
Loading…
Reference in New Issue
Block a user