redis.php 544 B

123456789101112131415161718192021
  1. <?php
  2. return [
  3. 'default' => [
  4. 'host' => 'redis://127.0.0.1:6379',
  5. 'options' => [
  6. 'auth' => null,
  7. 'db' => 0,
  8. 'prefix' => '',
  9. 'max_attempts' => 5,
  10. 'retry_seconds' => 5,
  11. ],
  12. // Connection pool, supports only Swoole or Swow drivers.
  13. 'pool' => [
  14. 'max_connections' => 5,
  15. 'min_connections' => 1,
  16. 'wait_timeout' => 3,
  17. 'idle_timeout' => 60,
  18. 'heartbeat_interval' => 50,
  19. ]
  20. ],
  21. ];