Ejemplo n.º 1
0
 /**
  * Gathers info from the server.
  *
  * @param string $section
  * @return array
  */
 public function info($section = '')
 {
     try {
         return $this->connection->info($section);
     } catch (Exception $e) {
         return $this->handleException($e, __FUNCTION__, func_get_args());
     }
 }
Ejemplo n.º 2
0
 /**
  * Gathers info from the server.
  * @param string $section
  * @return array
  */
 public function info($section = '')
 {
     $this->appendToLog('INFO ' . $section);
     return $this->connection->info($section);
 }
Ejemplo n.º 3
0
 /**
  * Test getting the info
  */
 public function testInfo()
 {
     $this->assertEmpty($this->redis->info());
     $this->assertNotEmpty($this->redis->info('clients'));
 }