Ejemplo n.º 1
0
 /**
  * Get a formatted array of data from the redis info
  *
  * @param  array              $service
  * @param  integer            $id
  * @param  Zend_Cache_Backend $client
  *
  * @return array
  */
 protected function _getSortedService(array $service, $id, Zend_Cache_Backend $client)
 {
     $this->_info = $client->getRedis()->info();
     return array('host' => $service['host'], 'port' => $service['port'], 'uptime' => $this->_getUptime(), 'connections' => $this->_getInfo('connected_clients'), 'memory' => $this->_getMemory(), 'role' => $this->_getInfo('role') . $this->_getSlaves(), 'lastsave' => $this->_getLastSave(), 'services' => array($id => array('name' => $service['name'], 'db' => $service['db'], 'keys' => count($client->getRedis()->keys('*')))));
 }