Commit 305d7548 authored by Sean Bleier's avatar Sean Bleier

Use scan_iter for re-inserting keys.

parent 379b7143
...@@ -431,7 +431,7 @@ class BaseRedisCache(BaseCache): ...@@ -431,7 +431,7 @@ class BaseRedisCache(BaseCache):
return value return value
def _reinsert_keys(self, client): def _reinsert_keys(self, client):
keys = client.keys('*') keys = list(client.scan_iter(match='*'))
for key in keys: for key in keys:
timeout = client.ttl(key) timeout = client.ttl(key)
value = self.get_value(client.get(key)) value = self.get_value(client.get(key))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment