swoft-cloud / swoft-component

📦 This is a repository of centralized management of all swoft core components
https://www.swoft.org
Apache License 2.0
96 stars 107 forks source link

Improve PhpRedisConnector class: add auth option (username and passwo… #600

Open lifinsky opened 4 years ago

lifinsky commented 4 years ago

PHPRedis 3.5 support auth as array ['username', 'password'] or ['user' => 'username', 'pass' => 'password'].

Because password property in RedisDb has type string, I added support for new option for Redis db connection option - "auth".

For example:

'redis-master' => [ 'class' => RedisDb::class, ... 'option' => ['auth' => ['user' => 'username', 'pass' => 'password']], ]

Swoole 4.5.8 change signature of Response::cookie() method: add priority argument

XueSiLf commented 3 years ago

您好 你这个和组件库冲突了 请重新提PR