|
@@ -16,10 +16,10 @@ function newredis(){
|
|
|
$redisconfig = config("redis");
|
|
|
$redis->connect($redisconfig["host"], $redisconfig["port"]);
|
|
|
if ($redisconfig['redis_pwd']) {
|
|
|
- $redis->auth(config('redis_pwd'));
|
|
|
+ $redis->auth($redisconfig['redis_pwd']);
|
|
|
}
|
|
|
if($redisconfig['redis_selectdb'] > 0){
|
|
|
- $redis->select(config('redis_selectdb'));
|
|
|
+ $redis->select($redisconfig['redis_selectdb']);
|
|
|
}
|
|
|
return $redis;
|
|
|
}
|