scan_iter
This commit is contained in:
3
store.py
3
store.py
@@ -12,7 +12,8 @@ async def get_all_removed(uid):
|
|||||||
texts = []
|
texts = []
|
||||||
|
|
||||||
# Use scan_iter to find all keys matching the pattern
|
# Use scan_iter to find all keys matching the pattern
|
||||||
for key in await redis.scan_iter(pattern):
|
scanned = await redis.scan_iter(pattern)
|
||||||
|
for key in scanned:
|
||||||
# Fetch the value for each key
|
# Fetch the value for each key
|
||||||
value = await redis.get(key)
|
value = await redis.get(key)
|
||||||
if value:
|
if value:
|
||||||
|
Reference in New Issue
Block a user