|
|
|
@ -21,7 +21,9 @@ class SsdbClient |
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* @throws \Exception |
|
|
|
*/ |
|
|
|
public static function client($host=null, $port=null) |
|
|
|
{ |
|
|
|
$host = $host??env('SSDB_HOST'); |
|
|
|
@ -31,7 +33,7 @@ class SsdbClient |
|
|
|
$SSDB = new SimpleSSDB($host, $port); |
|
|
|
$SSDB->auth(env('SSDB_AUTH')); |
|
|
|
} catch (\Exception $e) { |
|
|
|
dd($e); |
|
|
|
throw new \Exception('SSDB:' . $e->getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
return $SSDB; |
|
|
|
|