-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Semaphore] Add a semaphore store based on locks #59202
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
base: 7.3
Are you sure you want to change the base?
[Semaphore] Add a semaphore store based on locks #59202
Conversation
6921d4f
to
38cb65b
Compare
1fef9d7
to
84e0607
Compare
…aseLocks correctly on failing semphore acquired
@jderusse if you have some free time maybe you can have a relook at the changes we did since your last review as you are I think most familiar with semaphore component. |
@jderusse what I'm stuck of how we can make the framework bundle integration for this. |
@@ -24,7 +24,8 @@ | |||
"psr/log": "^1|^2|^3" | |||
}, | |||
"require-dev": { | |||
"predis/predis": "^1.1|^2.0" | |||
"predis/predis": "^1.1|^2.0", | |||
"symfony/lock": "^5.4 || ^6.0 || ^7.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want to allow those old versions here?
I really like this proposal! Is @jderusse's feedback to #59202 (comment) the only blocker? |
I really liked the idea of a semaphore component but not have the possibility to use it without Redis it did not get a lot a drive and usage in our projects and we workaround using Locks.
So this idea did come up to have a Semaphore store which can use the existing lock component for it.
@lyrixx @jderusse