aiohttp-client-cache icon indicating copy to clipboard operation
aiohttp-client-cache copied to clipboard

An async persistent cache for aiohttp requests

Results 19 aiohttp-client-cache issues
Sort by recently updated
recently updated
newest added

See related issue: https://github.com/reclosedev/requests-cache/issues/332

enhancement

Based on similar features recently added to `requests-cache`: https://requests-cache.readthedocs.io/en/stable/user_guide/serializers.html This is convenient if you want responses in a human-readable/editable format, or if you want to reuse them outside of `aiohttp-client-cache`...

enhancement

Similar to existing `stale_if_error` option in requests-cache. This should also include support for `Cache-Control: stale-if-error` (allowed in both request and response headers).

enhancement

### The problem In my [package](https://github.com/hyriver/async-retriever), I have two tests for checking caching. When I run the tests with `pytest`, I get this warning: ```console /Users/tchegini/repos/hyriver/async-retriever/.nox/tests-3-9/lib/python3.9/site-packages/_pytest/unraisableexception.py:80: PytestUnraisableExceptionWarning: Exception ignored in:...

bug

### Feature description The cache will use whatever method is supported depending on the presence of various header fields: - ETag - Last-Modified However, I encountered a corner-case when using...

enhancement

### Feature description ### Use case Use the same SQLite backend ### Workarounds Have the same key generation ### Plan to implement Maybe ```python from aiohttp_client_cache import CachedSession, SQLiteBackend import...

enhancement

* Add a `filter()` method to get only a subset of cached responses, similar to requests-cache's [`filter()`](https://requests-cache.readthedocs.io/en/stable/modules/requests_cache.backends.base.html#requests_cache.backends.base.BaseCache.filter) * To start, filtering out expired responses would be the most useful option...

enhancement

### Feature description ### Use case _Is there a specific goal that this would help you accomplish, or can you provide any other context about how you would like to...

enhancement

### Feature description Global cache via monkeypatching, [just like in `requests-cache`](https://requests-cache.readthedocs.io/en/stable/#patching) ```python import requests import requests_cache requests_cache.install_cache('demo_cache') requests.get('https://httpbin.org/delay/1') ``` [Apologies if this is not a sensible feature request; I'm new...

enhancement

### The problem Sometimes when I use my function to fetch data, it errors out and gives me ` ProgrammingError: Cannot operate on a closed database.` My bot serves many...

bug
needs:repro