Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Conversation

@andrewthetechie
Copy link
Owner

This is a breaking change. Models stored in redis with previous versions
of pydantic-aioredis won't properly deserialize with this change in
place.

The new serializer uses json to dump to string any complex objects
(List, Dict, Set, Python object, pydantic models, etc) and then stores
this string as the field value in the hash in redis. On retrieval from
redis, this string is json.loaded

This is a breaking change. Models stored in redis with previous versions
of pydantic-aioredis won't properly deserialize with this change in
place.

The new serializer uses json to dump to string any complex objects
(List, Dict, Set, Python object, pydantic models, etc) and then stores
this string as the field value in the hash in redis. On retrieval from
redis, this string is json.loaded.
Also reorganize docs a bit
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants