mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 13:07:53 +00:00
Update README.md
add explanation about expire
This commit is contained in:
committed by
GitHub
parent
9157412d6a
commit
cdae610432
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user