Skip to content

Commit

Permalink
Merge pull request #16 from tioncico/2.x
Browse files Browse the repository at this point in the history
redis增加connect
  • Loading branch information
evalor authored Dec 14, 2019
2 parents c6594e9 + b9766fe commit 5bc5d41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RedisPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function __construct(RedisConfig $redisConfig)
$redis = new RedisCluster($redisConfig);
}else{
$redis = new Redis($redisConfig);
$redis->connect($redisConfig->getTimeout());
}
return $redis;
});
Expand Down

0 comments on commit 5bc5d41

Please sign in to comment.