Is config('database.redis.options.cluster')
used only for predis?
#52869
Unanswered
JonathanGawrych
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Long ago someone created our database config without the
'database.redis.options.cluster'
option. During our upgrade to Laravel 11, I read about this, the docs saying:Intrigued, I searched the source code for use of
cluster
, but could not find it. The closest I found was inRedisManager::resolve()
:framework/src/Illuminate/Redis/RedisManager.php
Lines 103 to 121 in abf86b0
But this didn't seem to care about the
cluster
config inside options. Just if there was a defined config insideclusters
.Is this value just forwarded to the Connector? I found references to
cluster
in predis (https://github.com/predis/predis?tab=readme-ov-file#client-configuration) but not in phpredis. We are currently using phpredis, so is this config unused for us? Thanks!Beta Was this translation helpful? Give feedback.
All reactions