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

[WIP] New Store implementation using Redis #12

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

okuramasafumi
Copy link
Contributor

This fixes #10

This new Store class is a substitution for CircuitSwitch::CircuitSwitch which might cause deadlock.
I'll modify Engine to use Store as well but it'll take some time (using form_with is somewhat difficult).

`Store` class is a redis version of `CircuitSwitch::CircuitSwitch`.
Redis lets us store a hash with key, so it converts itself into
a Hash and stores it into redis.
It tries to have the same interface as `CS::CS` so that it's easy
to make transition.
New redis gem requires Ruby 2.4 and above.
After all, it's too old :)
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.

CircuitSwitch might cause too many Deadlock
1 participant