Skip to content

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

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

Merged

Conversation

santysisi
Copy link
Contributor

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 for the Lock component. Reusing the cached SHA improves performance and avoids sending the full script each time.

@carsonbot carsonbot added this to the 7.4 milestone Jul 19, 2025
@santysisi santysisi force-pushed the feature/redis-semaphore-evalsha branch from e02c705 to 2de307d Compare July 19, 2025 22:05
@santysisi santysisi changed the title [Semaphore] Enabled usage of EVALSHA and LOAD SCRIPT over regular EVAL [Semaphore] Enabled usage of EVALSHA and LOAD SCRIPT over regular EVAL Jul 19, 2025
@santysisi
Copy link
Contributor Author

santysisi commented Jul 19, 2025

Hi 👋, I think the erros in the tests isn't relevant in the context of this PR.

@santysisi santysisi force-pushed the feature/redis-semaphore-evalsha branch from 2de307d to 4afc680 Compare July 20, 2025 22:18
@nicolas-grekas
Copy link
Member

Thank you @santysisi.

@nicolas-grekas nicolas-grekas merged commit b065b9a into symfony:7.4 Jul 21, 2025
10 of 11 checks passed
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.

3 participants