/** * Verify, that redis is installed, working and has the right version. */ public function beforeCompile() { $config = $this->getConfig($this->defaults); if ($config['versionCheck'] && ($config['journal'] || $config['storage'] || $config['session'])) { $client = new RedisClient($config['host'], $config['port'], $config['database'], $config['timeout'], $config['auth']); $client->assertVersion(); $client->close(); } }
/** * Verify, that redis is installed, working and has the right version. */ public function beforeCompile() { foreach ($this->configuredClients as $config) { if (!$config['versionCheck']) { continue; } $client = new RedisClient($config['host'], $config['port'], $config['database'], $config['timeout'], $config['auth']); $client->assertVersion(); $client->close(); } }