connect(env('redis.host')); if (env('redis.auth', '') != '') { $redisInstance->auth(env('redis.auth')); } return $redisInstance; } }