From cdae61043204bb23aa9e7edd3348309145d49aac Mon Sep 17 00:00:00 2001 From: Mikhail Kuznetcov Date: Sun, 10 Jan 2021 16:26:41 +0100 Subject: [PATCH] Update README.md add explanation about expire --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 01482f1..d4c5477 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ And if you want use `ETag` and `Cache-Control` features, you must pass `response You can also use `cache` as decorator like other cache tools to cache common function result. +`expire` parameter states a caching time in seconds. + ### Custom coder By default use `JsonCoder`, you can write custom coder to encode and decode cache result, just need inherit `fastapi_cache.coder.Coder`.