Skip to content

Commit

Permalink
Merge pull request #673 from bakaphp/0.2-redis-cluster-phalcon
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken authored May 25, 2021
2 parents f0eaa11 + cd5b56a commit d00a6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/RedisProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function (bool $prefix = true) use ($app) {
(int) envValue('REDIS_PORT', 6379)
);
} else {
$clusters = explode(',', envValue('REDIS_HOST', '127.0.0.1'));
$clusters = explode(',', envValue('REDIS_CLUSTER_HOST', '127.0.0.1'));
$clusters = array_map('trim', $clusters);

$redis = new RedisCluster(null, $clusters, 1.5, 1.5);
Expand Down Expand Up @@ -63,7 +63,7 @@ function (bool $prefix = true) use ($app) {
(int) envValue('REDIS_PORT', 6379)
);
} else {
$clusters = explode(',', envValue('REDIS_HOST', '127.0.0.1'));
$clusters = explode(',', envValue('REDIS_CLUSTER_HOST', '127.0.0.1'));
$clusters = array_map('trim', $clusters);

$redis = new RedisCluster(null, $clusters, 1.5, 1.5);
Expand Down

0 comments on commit d00a6bf

Please sign in to comment.