Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
Swoole\Database\RedisConfig->withHost
Swoole\Database\RedisConfig->withPort
Swoole\Database\RedisConfig->withTimeout
Swoole\Database\RedisConfig->withReserved
Swoole\Database\RedisConfig->withRetryInterval
Swoole\Database\RedisConfig->withReadTimeout
Swoole\Database\RedisConfig->withAuth
Swoole\Database\RedisConfig->withDbIndex
Swoole\Database\RedisConfig->withHost(string $host)
Swoole\Database\RedisConfig->withPort(int $port)
Swoole\Database\RedisConfig->withTimeout(float $timeout)
Swoole\Database\RedisConfig->withReserved(string $reserved)
Swoole\Database\RedisConfig->withRetryInterval(int $retry_interval)
Swoole\Database\RedisConfig->withReadTimeout(float $read_timeout)
Swoole\Database\RedisConfig->withAuth(string $auth)
Swoole\Database\RedisConfig->withDbIndex(int $dbIndex)
<?php
(new RedisConfig)
->withHost('127.0.0.1')
->withPort(6379)
->withAuth('')
->withDbIndex(0)
->withTimeout(1)