You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
742 B

5 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://doc.hyperf.io
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. return [
  12. 'default' => [
  13. 'host' => env('REDIS_HOST', 'localhost'),
  14. 'auth' => env('REDIS_AUTH', null),
  15. 'port' => (int) env('REDIS_PORT', 6379),
  16. 'db' => (int) env('REDIS_DB', 0),
  17. 'pool' => [
  18. 'min_connections' => 1,
  19. 'max_connections' => 10,
  20. 'connect_timeout' => 10.0,
  21. 'wait_timeout' => 3.0,
  22. 'heartbeat' => -1,
  23. 'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
  24. ],
  25. ],
  26. ];