From 314095412cc71317eb6afb23eb5e4e6ee1c9b9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Magalh=C3=A3es?= <43156212+igormagalhaesr@users.noreply.github.com> Date: Thu, 19 Oct 2023 19:59:43 -0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7aa94e2..441ed3d 100644 --- a/README.md +++ b/README.md @@ -392,12 +392,12 @@ async def read_posts( ... -# 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: @router.delete("/{username}/post/{id}") @cache( "{username}_post_cache", resource_id_name="id", - 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 ) async def erase_post( request: Request,