Skip to content

[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

Open
wants to merge 14 commits into
base: 7.3
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Dec 12, 2024

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #...
License MIT

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

@alexander-schranz alexander-schranz marked this pull request as ready for review December 12, 2024 18:29
@carsonbot carsonbot added this to the 7.3 milestone Dec 12, 2024
@alexander-schranz alexander-schranz force-pushed the feature/semphore-store-based-on-locks branch 3 times, most recently from 6921d4f to 38cb65b Compare December 12, 2024 18:50
@alexander-schranz alexander-schranz force-pushed the feature/semphore-store-based-on-locks branch from 1fef9d7 to 84e0607 Compare January 6, 2025 12:45
@symfony symfony deleted a comment from carsonbot Jan 8, 2025
@alexander-schranz
Copy link
Contributor Author

@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.

@alexander-schranz
Copy link
Contributor Author

@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"
Copy link
Contributor

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?

@Toflar
Copy link
Contributor

Toflar commented May 13, 2025

I really like this proposal! Is @jderusse's feedback to #59202 (comment) the only blocker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants