Open titogarrido opened 1 year ago
I just noticed that types that are other Pydantic classes are not added to cache...
class Post(PostBase):
id: int
author_id: int
author: UserSimple = None
category: Optional[PostCategory] = None
created_at: datetime
updated_at: Optional[datetime]
visible: bool
editors_choice: bool
never_popular: bool
full_cover: Optional[str] = None
cover_position: Optional[str] = None
visitors: Optional[int] = 0
score: Optional[float] = 0
bookmarks_count: Optional[int] = 0
votes_count: Optional[int] = 0
photos: List[PhotoFull] = []
badges: List[Badge] = []
Another schema that is missing data, the "author" does not get cached.
@long2ice It seems that this issue has already been resolved in the latest main branch, so when are we planning to release version 0.2.2?
Hi Folks,
I have a function that returns an user querying the username:
The endpoint:
The schemas.Artist:
When the first request queries the DB and writes in redis, the second one try to fetch from redis and I am receiving:
It does not support orm_mode?
Thanks!