We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cf5b4f + 3140954 commit 1d796c0Copy full SHA for 1d796c0
README.md
@@ -392,12 +392,12 @@ async def read_posts(
392
393
...
394
395
-# I'll invalidate the cache for the former endpoint by just passing the key_prefix and id as a dictionary:
+# Invalidating cache for the former endpoint by just passing the key_prefix and id as a dictionary:
396
@router.delete("/{username}/post/{id}")
397
@cache(
398
"{username}_post_cache",
399
resource_id_name="id",
400
- to_invalidate_extra={"{username}_posts": "{username}"} # Now it will also invalidate the cache with id "{username}_posts:{username}"
+ to_invalidate_extra={"{username}_posts": "{username}"} # also invalidate "{username}_posts:{username}" cache
401
)
402
async def erase_post(
403
request: Request,
0 commit comments