long2ice / fastapi-cache

fastapi-cache is a tool to cache fastapi response and function result, with backends support redis and memcached.
https://github.com/long2ice/fastapi-cache
Apache License 2.0
1.2k stars 145 forks source link

PydanticV2 support #249

Open anton-petrov opened 11 months ago

anton-petrov commented 11 months ago

Right now fastapi-cache is incompatible with modern pydanticV2 and fastapi respectively.

For example:

AttributeError: module 'pydantic.fields' has no attribute 'ModelField'

it would be nice to adapt to the current versions of pydantic and fastapi

JoseMoreville commented 10 months ago

It is worth to check how to add support, however the project releases look really outdated.