mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
2
lib/ansible/plugins/cache/redis.py
vendored
2
lib/ansible/plugins/cache/redis.py
vendored
@@ -75,7 +75,7 @@ class CacheModule(BaseCacheModule):
|
|||||||
def _expire_keys(self):
|
def _expire_keys(self):
|
||||||
if self._timeout > 0:
|
if self._timeout > 0:
|
||||||
expiry_age = time.time() - self._timeout
|
expiry_age = time.time() - self._timeout
|
||||||
self._cache.zremrangebyscore(self._keys_set, 0, expiry_age)
|
self._cache.zremrangebyscore(self._keys_set, 0, expiry_age)
|
||||||
|
|
||||||
def keys(self):
|
def keys(self):
|
||||||
self._expire_keys()
|
self._expire_keys()
|
||||||
|
|||||||
Reference in New Issue
Block a user