-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cache functionality? #29
Comments
I'd have to take a look at this in greater detail later, but I'd be okay with seeing this implemented. Since a major refactor on Scrython was finished, there's a new Foundation class that was added that all other classes inherit from. New functionality like that would be easiest to implement in that class. Make a pull to |
Did anything ever come of this? |
Is this still planned because I would like to use it? |
I currently don't have the time to dedicate to updating this package with that kind of functionality. I also never planned to add this, it was suggested by someone else. I only have time for small patches. I welcome anyone who would like to fork this repo and submit a PR to add it. |
I might see about giving this a shot, will submit a PR if/when I'm successful. |
Would you accept a pull request that adds caching functionality to Scrython? Supporting caching in the library itself would be a big benefit, rather than each other developer needing to implement their own caching scheme.
If you're excited by this, I'm willing to look into adding this feature, and I'd love to discuss implementation details in more depth. My main thoughts are currently the following:
diskcache
for this, specifically theFanoutCache.memoize
decorator. Given how many objects Scryfall has, I'd rather use a disk-based cache (with a long expiration time) than a memory-based one.Thanks for writing the library!
The text was updated successfully, but these errors were encountered: