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.
1 parent 20e9874 commit 93eb908Copy full SHA for 93eb908
README.md
@@ -95,6 +95,7 @@ memory_cache = EntityCache()
95
@cache('user') # "user" - is entity used later *only for invalidation*
96
def get_user(user_id):
97
# Your database/interservice query here
98
+ # 'id' is default id_key for tracking so-called 'user' entity
99
return {"id": user_id, "name": f"User {user_id}"}
100
101
# Get user (will be cached)
0 commit comments