We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use the same SQLite backend
Have the same key generation
Maybe
from aiohttp_client_cache import CachedSession, SQLiteBackend import requests_cache cache = "drive/MyDrive/xyz.sqlite" url = 'https://example.com' requests_cache.install_cache(cache) requests.get(url) async def main(): global url async with CachedSession(cache=SQLiteBackend(cache)) as session: r = await session.get(url) print(r.from_cache) await main()
This evaluates to False, but should be True
False
True
The text was updated successfully, but these errors were encountered:
I agree that this would be nice to have. Unfortunately this would require quite a bit more work than just changing the cache keys. Problems include:
aiohttp.ClientResponse
requests.Response
pickle
A possible solution might look something like:
There could be a simpler solution, but I can't think of one right now.
Sorry, something went wrong.
No branches or pull requests
Feature description
Use case
Use the same SQLite backend
Workarounds
Have the same key generation
Plan to implement
Maybe
This evaluates to
False
, but should beTrue
The text was updated successfully, but these errors were encountered: