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(store/redis): use redis SCAN #97

Merged
merged 5 commits into from
Apr 5, 2023
Merged

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Mar 23, 2023

redis KEYS may block other requests. This PR changes List and Read to SCAN and implements prefix and suffix

  • do not fail when redis cannot be initialized
  • make redis store use SCAN to list keys, with prefix and suffix
  • read using SCAN with prefix and suffix

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@Davincible
Copy link
Contributor

Thanks for the contribution, looks good

@Davincible Davincible changed the title use redis SCAN feat(store/redis): use redis SCAN Apr 5, 2023
@Davincible Davincible merged commit efd9191 into micro:main Apr 5, 2023
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.

2 participants