for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Geolim4
* Date: 12/02/2018
* Time: 23:10
*/
namespace Phpfastcache\Drivers\Redis;
use Phpfastcache\Config\ConfigurationOption;
use Redis as RedisClient;
class Config extends ConfigurationOption
{
* @var string
protected $host = '127.0.0.1';
* @var int
protected $port = 6379;
protected $password = '';
protected $database = 0;
protected $timeout = 5;
* @var RedisClient
protected $redisClient;
* @return string
public function getHost(): string
return $this->host;
}
* @param string $host
* @return self
public function setHost(string $host): self
$this->host = $host;
return $this;
* @return int
public function getPort(): int
return $this->port;
* @param int $port
public function setPort(int $port): self
$this->port = $port;
* @return mixed
public function getPassword()
return $this->password;
* @param string $password
public function setPassword(string $password): self
$this->password = $password;
public function getDatabase(): int
return $this->database;
* @param int $database
public function setDatabase(int $database): self
$this->database = $database;
public function getTimeout(): int
return $this->timeout;
* @param int $timeout
public function setTimeout(int $timeout): self
$this->timeout = $timeout;
* @return RedisClient|null
public function getRedisClient()
return $this->redisClient;
* @param RedisClient $predisClient|null
* @return Config
public function setRedisClient(RedisClient $redisClient = null): Config
$this->redisClient = $redisClient;