Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: redis-separator #278

Merged
merged 9 commits into from
Sep 17, 2022
Merged

feat: redis-separator #278

merged 9 commits into from
Sep 17, 2022

Conversation

andrewthetechie
Copy link
Owner

#192 #277 This adds the ability to customize the redis separator and changes the default separator from %& to :.

Additionally, it adds a way for a user to add a prefix to the key space we use, to further differentiate their keys.

Finally, it fixes a bug with testing where redislite would not shutdown properly and updates the fixtures to work with the newest version of pytest_asyncio.

BREAKING CHANGE: This will result in "data loss" for existing models stored in redis due to the change in default separator. To maintain backwards compatbility with 0.7.0 and below, you will need to modify your existing models to set redis_separator = "%&_" as a field on them.

#192
#277
This adds the ability to customize the redis separator and changes the
default separator from _%&_ to :.

Additionally, it adds a way for a user to add a prefix to the key space
we use, to further differentiate their keys.

Finally, it fixes a bug with testing where redislite would not shutdown
properly and updates the fixtures to work with the newest version of
pytest_asyncio.

BREAKING CHANGE: This will result in "data loss" for existing models
stored in redis due to the change in default separator. To maintain
backwards compatbility with 0.7.0 and below, you will need to modify
your existing models to set _redis_separator = "_%&_" as a field on
them.
@andrewthetechie andrewthetechie merged commit f367d30 into main Sep 17, 2022
@andrewthetechie andrewthetechie deleted the redis-separator branch September 17, 2022 01:48
@andrewthetechie andrewthetechie linked an issue Sep 17, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: How to configure prefixes for the created Redis keys?
1 participant