public __construct ( string $host = '127.0.0.1', integer $port = 6379, float $timeout, string $reserved = null, integer $retry = null ) | ||
$host | string | optional |
$port | integer | optional |
$timeout | float | value in seconds. default is 0 meaning unlimited |
$reserved | string | should be NULL if $retry is specified |
$retry | integer | value in milliseconds |
public function __construct($host = '127.0.0.1', $port = 6379, $timeout = 0, $reserved = null, $retry = null)
{
$this->host = $host;
$this->port = $port;
$this->timeout = $timeout;
$this->reserved = $reserved;
$this->retry = $retry;
$this->socket = null;
$this->setPrefix(self::KEY_PREFIX_IZZUM);
$this->setConfigurationKey(self::KEY_CONFIGURATION);
$this->setDatabase(self::DATABASE_DEFAULT);
}