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

Implement cache control via environment variable(s) #614

Open
randomir opened this issue Apr 10, 2024 · 0 comments
Open

Implement cache control via environment variable(s) #614

randomir opened this issue Apr 10, 2024 · 0 comments
Labels

Comments

@randomir
Copy link
Member

Similarly to config file location environment variable, DWAVE_CONFIG_FILE, add an option to control cache directory location (for region and solver metadata cache, etc) from the environment.

For example, DWAVE_CACHE_HOME.

An option to disable disk caching could be implemented either via a separate variable, or as a special-meaning value, such as DWAVE_CACHE_HOME=disabled.

While implementing this, have in mind we'll eventually want to have a shared Ocean cache control/interface, see dwavesystems/minorminer#242.

Another control dimension would be cache type: memory (dwave.cloud.utils.cached), disk (dwave.cloud.utils.cached.ondisk or diskcache), memcached?, redis?, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant