Skip to content
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

[5.6] Refactor PhpRedis connector #24824

Merged
merged 3 commits into from
Jul 13, 2018

Conversation

tillkruss
Copy link
Contributor

@tillkruss tillkruss commented Jul 12, 2018

This PR is an addition to #24678 thanks to @dzuelke's suggestions in #24678 (comment) and #24748.

  • [5.6] Add missing phpredis connection parameters to PhpRedisConnector. #24678 introduced a non-existent reserved option. It's just a reference in the docs.
  • Add the retry_interval option to persistent connections.
  • If PhpRedis is >=3.1.3 add the read_timeout option to connections so the authentication and database selection steps are also subject to the read timeout.
  • Merge connect() and pconnect() calls, since both just pass through their arguments to redis_connect().

Fixes #24748.

@tillkruss tillkruss force-pushed the fix-phpredis-connector branch from c8fc4fe to 8e24284 Compare July 12, 2018 22:15
connect() and pconnect() just pass through their arguments to redis_connect()
@tillkruss tillkruss changed the title [5.6] [WIP] Refactor PhpRedis connector [5.6] Refactor PhpRedis connector Jul 12, 2018
@taylorotwell taylorotwell merged commit 8af242b into laravel:5.6 Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants