-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
PHPRedis Cluster constants #48361
Comments
Thanks for the PR! |
@stemis what about if I'm using |
@stemis Could you please provide me with your database.php configurations for phpredis cluster as I just keep getting an error |
@ahmednabil2k You should configure options in Redis like that |
Laravel Version
10.16.1
PHP Version
8.1
Database Driver & Version
No response
Description
The PHPRedis library removed
RedisCluster::
constants since6.0.0
. Released on pecl today 2023-09-11However, these constants are still used:
framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php
Line 191 in 9ae962a
My build started failing today now that version 6.0.0 is on pecl, and I didn't lock down the pecl version.
I'm using cluster mode and have a prefix and the code is failing with:
The author of PHPREDIS recommends not using the constants of
RedisCluster
anymore but using the constants inRedis
instead here: phpredis/phpredis#2262 (comment):I believe they are also backwards compatible as they were duplicated in Redis.php already.
Steps To Reproduce
Workaround:
Instead of using
pecl install redis
, usepecl install redis-5.3.7
The text was updated successfully, but these errors were encountered: