初步MQ
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => [
|
||||
'host' => 'redis://127.0.0.1:6379',
|
||||
'host' => 'redis://192.168.1.42:6379',
|
||||
'options' => [
|
||||
'auth' => null, // 密码,字符串类型,可选参数
|
||||
'auth' => 'Chaozg123.', // 密码,字符串类型,可选参数
|
||||
'db' => 0, // 数据库
|
||||
'prefix' => '', // key 前缀
|
||||
'max_attempts' => 5, // 消费失败后,重试次数
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
|
||||
return [
|
||||
'default' => [
|
||||
'password' => '222222',
|
||||
'password' => 'Chaozg123.',
|
||||
'host' => '192.168.1.42',
|
||||
'port' => 6379,
|
||||
'database' => 0,
|
||||
// Connection pool, supports only Swoole or Swow drivers.
|
||||
'pool' => [
|
||||
'max_connections' => 5,
|
||||
'min_connections' => 1,
|
||||
'max_connections' => 100,
|
||||
'min_connections' => 10,
|
||||
'wait_timeout' => 3,
|
||||
'idle_timeout' => 60,
|
||||
'heartbeat_interval' => 50,
|
||||
|
||||
Reference in New Issue
Block a user