Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace SQLite dependency with optional use of memcached #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hdluc
Copy link

@hdluc hdluc commented Nov 19, 2022

Since the SQLite implementation caches to disk and also adding sqlite component requiered recompjlation of python, it was very cumbersome to use. This change removes the dependency on SQlite and uses an in memory cache instead. There are two caches, a local in memory cache and optionally if memcached is available, it will be used as a secondary cache. This secondary cache is used when ansible switches python processes that would result in losing the primary in process local memory cache.

Use global dict as hashtable instead of using diskcache to have the caching in-memory
removed dependency on diskcache
Since the SQLite implementation caches to disk and also adding sqlite component requiered recompjlation of python, it was very cumbersome to use. This change removes the dependency on SQlite and uses an in memory cache instead. There are two caches, a local in memory cache and optionally if memcached is available, it will be used as a secondary cache. This secondary cache is used when ansible switches python processes that would result in losing the primary in process local memory cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant