public function __construct($ID = '', IRedisServer $RedisServer = NULL) { if (!empty($RedisServer)) { $this->redis = $RedisServer; } else { $this->setDefaultRedisServer(); } $this->set_ID($ID); }
/** * Constructor. * * @param string $host * @param \Jamm\Memory\IRedisServer $port * */ public function __construct($host, $port) { $redisServer = new RedisServer($host, $port); parent::__construct('webiny', $redisServer); }