Exemplo n.º 1
0
 static function stats()
 {
     if (self::connect()) {
         if (CGlobal::$memcache_connect_id) {
             return memcache_get_stats(CGlobal::$memcache_connect_id);
         }
     }
     return TRUE;
 }
Exemplo n.º 2
0
 function showStats($server = null)
 {
     $stats_out = '';
     if ($server == null) {
         $i = 0;
         foreach ($this->connections as $conn) {
             $server = $this->_servers[$i];
             $stats_array = memcache_get_stats($conn);
             $stats_out .= "</br><b>Server: " . $server['host'] . ": </b><br/>";
             foreach ($stats_array as $key => $val) {
                 $stats_out .= "{$key} => {$val} <br/>";
             }
             $i++;
         }
     }
     return $stats_out;
 }
Exemplo n.º 3
0
 public function info($type = NULL)
 {
     return memcache_get_stats(true);
 }
Exemplo n.º 4
0
 public static function stats()
 {
     return \memcache_get_stats(self::$connection);
 }