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] added DSN support for rediss in AbstractAdapter and RedisTrait#30605

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

Merged
fabpot merged 1 commit intosymfony:masterfromalex-vasilchenko-md:master
Mar 20, 2019
Merged

[Cache] added DSN support for rediss in AbstractAdapter and RedisTrait#30605

fabpot merged 1 commit intosymfony:masterfromalex-vasilchenko-md:master
Mar 20, 2019

Conversation

@alex-vasilchenko-md
Copy link
Contributor

@alex-vasilchenko-mdalex-vasilchenko-md commentedMar 19, 2019
edited by nicolas-grekas
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30573
LicenseMIT

A fix for this issue:#30573
Support for "rediss:" in DSN added.

Copy link
Member

@stofstof left a comment

Choose a reason for hiding this comment

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

Tests must be added forcreateConnection to cover therediss scheme.

{
if (0 !==strpos($dsn,'redis:')) {
thrownewInvalidArgumentException(sprintf('Invalid Redis DSN: %s does not start with "redis:".',$dsn));
if (0 !==strpos($dsn,'redis:') &&0 !==strpos($dsn,'rediss:')) {
Copy link
Member

Choose a reason for hiding this comment

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

you also need to update the regex of thepreg_replace_callback below

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

OK,@stof , I added tests and modified regexp.

@nicolas-grekasnicolas-grekas added this to thenext milestoneMar 19, 2019
@fabpot
Copy link
Member

Thank you@alex-vasilchenko-md.

alex-vasilchenko-md reacted with heart emoji

@fabpotfabpot merged commit7e2852d intosymfony:masterMar 20, 2019
fabpot added a commit that referenced this pull requestMar 20, 2019
…r and RedisTrait (alex-vasilchenko-md)This PR was squashed before being merged into the 4.3-dev branch (closes#30605).Discussion----------[Cache] added DSN support for rediss in AbstractAdapter and RedisTrait| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#30573| License       | MITA fix for this issue:#30573Support for "rediss:" in DSN added.Commits-------7e2852d [Cache] added DSN support for rediss in AbstractAdapter and RedisTrait
@stof
Copy link
Member

AFAICT, this will still treat it the same thanredis when passing the settings to the Redis connection. There is no change making it use an encrypted connection. So this looks incomplete.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

5 participants

@alex-vasilchenko-md@fabpot@stof@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp