You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bin/resque: add support for connecting with a cluster client
As `bin/resque` currently works, it pulls in the hostname to use from
the environment using `getenv`. The problem with this is that you cannot
pass in an array which is what the underlying Redis library uses[1] to
determine whether it initialises a `Credis_Client` or a `Credit_Cluster`
for the connection.
This solves that by introducing a new environment variable
(`REDIS_CLUSTER_ENABLED`) to determine when it should expand a comma
separated list of hosts to define as a cluster.
[1]: master/lib/Resque/Redis.php#L128
0 commit comments