This commit is contained in:
2025-10-14 15:10:13 +08:00
parent 8aed3e5aac
commit d2a46c4738
15 changed files with 512 additions and 15 deletions

View File

@@ -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, // 消费失败后,重试次数

View File

@@ -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,