Memcached::getStats

(PECL memcached >= 0.1.0)

Memcached::getStats锟斤拷取锟斤拷锟斤拷锟斤拷锟截碉拷统锟斤拷锟斤拷息

说锟斤拷

public Memcached::getStats ( void ) : array

Memcached::getStats()锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟叫匡拷锟斤拷memcache锟斤拷锟斤拷锟斤拷状态锟斤拷锟斤拷锟斤拷. 锟斤拷锟截碉拷统锟斤拷锟斤拷息锟斤拷锟斤拷细锟斤拷锟斤拷锟轿硷拷» memcache protocol锟斤拷 锟斤拷锟斤拷注锟斤拷锟斤拷实锟介,锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟矫凤拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷false锟斤拷

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟斤拷锟斤拷统锟斤拷锟斤拷息锟斤拷锟介, 每锟斤拷锟斤拷锟斤拷锟斤拷一锟筋。

锟斤拷锟斤拷

Example #1 Memcached::getStats() 示锟斤拷

<?php
$m 
= new Memcached();
$m->addServer('localhost'11211);

print_r($m->getStats());
?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

Array
(
    [localhost:11211] => Array
        (
            [pid] => 4933
            [uptime] => 786123
            [threads] => 1
            [time] => 1233868010
            [pointer_size] => 32
            [rusage_user_seconds] => 0
            [rusage_user_microseconds] => 140000
            [rusage_system_seconds] => 23
            [rusage_system_microseconds] => 210000
            [curr_items] => 145
            [total_items] => 2374
            [limit_maxbytes] => 67108864
            [curr_connections] => 2
            [total_connections] => 151
            [connection_structures] => 3
            [bytes] => 20345
            [cmd_get] => 213343
            [cmd_set] => 2381
            [get_hits] => 204223
            [get_misses] => 9120
            [evictions] => 0
            [bytes_read] => 9092476
            [bytes_written] => 15420512
            [version] => 1.2.6
        )

)