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

Persisting cache #4

Open
stanipintjuk opened this issue Dec 16, 2020 · 1 comment
Open

Persisting cache #4

stanipintjuk opened this issue Dec 16, 2020 · 1 comment

Comments

@stanipintjuk
Copy link

Hey, this lib looks really cool and I'm considering using it in a cli tool I'm developing 😀

Is there a way to persist the cache to a file instead of the in memory cache that you have implemented?

If not; are you open to PRs?
Thanks

@monbrey
Copy link
Owner

monbrey commented Jan 16, 2021

Hey, sorry I didn't reply to this sooner. There's no built-in method for the cache to be persisted to files, it's not really part of the design. We could make the Endpoint#cache property public though so it can be accessed by code outside the class, and then any code can write it to file if you want.

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

No branches or pull requests

2 participants