# Ansible Cache Plugin - How do I validate what is actually in memory cache

**URL:** <https://forum.ansible.com/t/ansible-cache-plugin-how-do-i-validate-what-is-actually-in-memory-cache/31387>\
**Category:** Ansible Developer\
**Created:** [September 29, 2019, 6:55pm UTC](https://forum.ansible.com/t/ansible-cache-plugin-how-do-i-validate-what-is-actually-in-memory-cache/31387 "2019-09-29T18:55:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edward\_Perry](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@Edward\_Perry](https://forum.ansible.com/u/Edward_Perry)\
**Post date:** [September 29, 2019, 6:55pm UTC](https://forum.ansible.com/t/ansible-cache-plugin-how-do-i-validate-what-is-actually-in-memory-cache/31387/1 "2019-09-29T18:55:01Z")

</div>

So I have been writing an Elasticsearch Cache Plugin [https://github.com/eperry/ansible-plugin-cache-elasticsearch](https://github.com/eperry/ansible-plugin-cache-elasticsearch)

So it is saving very well, and I can validate what I read/write to a file, elasticsearch. But how do I know Ansible is actually seeing the data I want it to see

I mean there is no Ansible function like --list-hosts or --list-tags to dump what ansible sees in cache. I don’t know absolutely that the settings I have in cache are the ones ansible is acting against.

Maybe I am being overly paranoid but it would be nice when a value was pulled from cache vs did not exist, or gather facts had to load it.
