community.general/lib/ansible/plugins/cache
Yann Rouillard ee3dfef016 Only delete key from redis in-memory cache if present (#35126)
Fixes #35120 : the redis cache plugin keeps key/value
entries in an in-memory cache to avoid hitting the
redis database each time.

The problem is that a cache entry is only set when
a value is get or set but it is always deleted when
trying to delete a value.

When the --flush-cache ansible-playbook option is used,
the redis cache plugin is first asked to remove every
entry corresponding to every hostname present in the inventory.
As no value as been set/get so far, it then tries to delete
an unexisting value from the cache and hence crashes with
a KeyError exception.
2018-10-03 11:06:44 -04:00
..
__init__.py Fix cache timeout behavior 2018-06-01 12:25:04 -04:00
base.py
jsonfile.py Fix _uri option documentation for cache plugins that expect strings 2018-09-25 09:57:03 -04:00
memcached.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
memory.py
mongodb.py Correct doc for cache plugin 2018-05-21 13:29:03 -04:00
pickle.py Fix _uri option documentation for cache plugins that expect strings 2018-09-25 09:57:03 -04:00
redis.py Only delete key from redis in-memory cache if present (#35126) 2018-10-03 11:06:44 -04:00
yaml.py Fix _uri option documentation for cache plugins that expect strings 2018-09-25 09:57:03 -04:00