Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dciprian-petrisor
Copy link
Contributor

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

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after some CS tweaks thanks.

@dciprian-petrisor
Copy link
Contributor Author

@nicolas-grekas I believe the last commit covers all points, let me know if there's something else.

@nicolas-grekas
Copy link
Member

Thank you @dciprian-petrisor.

@nicolas-grekas nicolas-grekas merged commit 8be2511 into symfony:7.2 Oct 23, 2024
4 of 8 checks passed
@ro0NL
Copy link
Contributor

ro0NL commented Dec 17, 2024

This seems a serious BC break #59087

@dciprian-petrisor
Copy link
Contributor Author

@ro0NL looking into it to provide a fix

nicolas-grekas added a commit that referenced this pull request Jul 21, 2025
… over regular `EVAL` (santysisi)

This PR was merged into the 7.4 branch.

Discussion
----------

[Semaphore] Enabled usage of `EVALSHA` and `LOAD SCRIPT` over regular `EVAL`

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Issues        | no
| License       | MIT

This PR updates the Semaphore component to use `EVALSHA` instead of `EVAL` when evaluating Lua scripts, following the same approach introduced in a previous [PR](#58533) for the Lock component. Reusing the cached `SHA` improves performance and avoids sending the full script each time.

Commits
-------

4afc680 [Semaphore] Enabled usage of `EVALSHA` and `LOAD SCRIPT` over regular `EVAL`
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.

Symfony\Lock\Store\RedisStore does not use LOAD SCRIPT and EVALSHA

6 participants