mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-07-29 19:18:54 +00:00
f78a599bbc
Use the return annotation to decode cached data to the correct type. This follows the same logic FastAPI uses to JSON request bodies. For the PickleCoder, this is a no-op as pickle already stores type information in the serialised data.