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

Response caching support? #79

Open
kovan opened this issue Nov 5, 2021 · 1 comment
Open

Response caching support? #79

kovan opened this issue Nov 5, 2021 · 1 comment
Labels
feature New feature or request

Comments

@kovan
Copy link

kovan commented Nov 5, 2021

Hi. I am looking at this library for using in my code, but I have a question: Would it be possible to implement a response cache?
Right now, in my sync code, I am using the httplib2 cache functionality for this, which caches content using the ETags that the API provides. This is the recommended approach by the official google-api-python-client (see https://github.com/googleapis/google-api-python-client/blob/main/docs/performance.md#cache).

How to implement this in with aiogoogle?

Thank you for your time.

@omarryhan
Copy link
Owner

Hey @kovan sorry for taking a while to respond.
It certainly is possible, but unfortunately I don't have the time to work on this feature right now. If you're up for it, I can help give some guidance along the way. In the official Google lib, it seems that you get two options, first is to store the cache in Memcached and second is to store the cache on disk. Either way, we'll have to make it async framework agnostic. Or maybe we can just implement caching for the Asyncio session, your pick.
Thanks!

@omarryhan omarryhan added the feature New feature or request label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants