Today, every cached response is cached inside the namespace "response_cache" or any namespace you defined in a root level. However, I would like certain route to be cached on different namespace to manage the cache invalidation differently according to the response.
@get(cache=True, cache_namespace='another_response_cache', sync_to_thread=False)
def cached_handler() -> str:
# this will use app.stores.get("response_cache")
return "Hello, world!"
No response
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too