fengdangxing/hyperf-helper-redis

hyperf-helper-redis 快速使用redis帮助类

v1.0.3 2023-12-21 09:28 UTC

This package is auto-updated.

Last update: 2024-12-21 11:44:12 UTC


README

hyperf-helper-redis快速使用助手类

#config/redis.php 增加配置 文件不在增加
return [
    'default' => [
        'host' => env('REDIS_HOST', 'localhost'),
        'auth' => env('REDIS_AUTH', null),
        'port' => (int) env('REDIS_PORT', 6379),
        'db' => (int) env('REDIS_DB', 0),
        'pool' => [
            'min_connections' => 1,
            'max_connections' => 50,
            'connect_timeout' => 10.0,
            'wait_timeout' => 3.0,
            'heartbeat' => -1,
            'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
        ],
    ]
];