-
Notifications
You must be signed in to change notification settings - Fork 123
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
sqlite cache #187
Comments
write your own, and propose a pull req, I do have a sqlite cache that adapt CacheControl but it require some refactor to proper propose as pull req. |
here is a minimal base that should work
|
Thank you for showing me this. |
Also, I won't be adding any other cache implementations to CacheConrol proper. I'd much rather you create your own package and submit a PR to the docs linking to it. |
I original write SQLite cache because there is too much problem with I think provide a simple SQLite implement will be very sufficient for most people, the down side is there is no easy implement to take care outdated files and vacuum for sqlite3, |
There's requests-cache, which supports SQLite caching, but doesn't have many features like CacheControl |
The cache doesn't appear in the database when I used your base. |
@thechief389 |
It might be worth doing some research into adapting https://github.com/grantjenks/python-diskcache to cachecontrol. That package provides a generic cache implementation which is a mix of SQLite and file based caching. It would also be an interesting solution for issue #185 |
I did some testing, it seems that python-diskcache can be used as a drop in replacement for
Then you could periodically call |
Is it possible to cache responses into a sqlite database?
The text was updated successfully, but these errors were encountered: