Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option#46401

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
buffcode wants to merge0 commits intosymfony:4.4frombuffcode:patch-2

Conversation

@buffcode
Copy link
Contributor

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
LicenseMIT

Enforce usage of\Predis\Client when theredis_sentinel option is enabled.

Otherwise it is possible to give the optionclass: Redis, which will setup the connection without any error but fail to work, because the Redis commands will be issued against the Sentinel instances instead of the Redis instances.

@buffcode
Copy link
ContributorAuthor

AppVeyor check result seems to be unrelated, tests are successful but the job times out:Build execution time has reached the maximum allowed time for your plan (20 minutes).

@carsonbot
Copy link

Hey!

I think@jonashrem has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekasnicolas-grekas changed the title[Cache] Enforce usage of Predis with Sentinel[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" optionMay 21, 2022
@nicolas-grekas
Copy link
Member

Thank you@buffcode.

nicolas-grekas added a commit that referenced this pull requestMay 21, 2022
…dis "class" option (buffcode)This PR was merged into the 4.4 branch.Discussion----------[Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| License       | MITEnforce usage of `\Predis\Client` when the `redis_sentinel` option is enabled.Otherwise it is possible to give the option `class: Redis`, which will setup the connection without any error but fail to work, because the Redis commands will be issued against the Sentinel instances instead of the Redis instances.Commits-------cdc9414 [Cache] Throw when "redis_sentinel" is used with a non-Predis "class" option
@buffcodebuffcode deleted the patch-2 branchMay 21, 2022 10:02
This was referencedMay 27, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

3 participants

@buffcode@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp