new url for memcache protocol documents.
https://github.com/memcached/memcached/blob/master/doc/protocol.txt
(PECL memcached >= 0.1.0)
Memcached::getStats — Lit des statistiques du pool de serveurs
Memcached::getStats() retourne un tableau contenant l'état de toutes les machines en fonctionnement. Voyez le » protocole memcached pour plus de détails sur ces statistiques.
type
Le type de statistiques à récupérer.
Un tableau de statistiques de serveurs, une entrée par serveur, ou false
si une erreur survient.
Exemple #1 Exemple avec Memcached::getStats()
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);
print_r($m->getStats());
?>
Résultat de l'exemple ci-dessus est similaire à :
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 ) )
new url for memcache protocol documents.
https://github.com/memcached/memcached/blob/master/doc/protocol.txt
the link to memcache protocol is out date. the new link is https://github.com/facebook/memcached/blob/master/doc/protocol.txt
The method currently does not support the optional (and subject to change) type parameter for the stats command:
- "items", "sizes", "slabs"
The documentation for the optional parameters can be found here (sections below General-purpose statistics):
http://code.sixapart.com/svn/memcached/trunk/server/doc/protocol.txt
The Memcache Extension can be uses to retrieve that information:
http://www.php.net/manual/en/function.memcache-getstats.php