Update README.md

add explanation about expire
This commit is contained in:
Mikhail Kuznetcov
2021-01-10 16:26:41 +01:00
committed by GitHub
parent 9157412d6a
commit cdae610432

View File

@@ -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`.