1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix redis fact_caching_timeout=0 bug

Fixes #12018
This commit is contained in:
James Cammarata 2015-08-28 11:47:06 -04:00
parent 5a5b9f211b
commit 66ed397360

View file

@ -75,7 +75,7 @@ class CacheModule(BaseCacheModule):
def _expire_keys(self):
if self._timeout > 0:
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):
self._expire_keys()