|
Memcache::getExtendedStats
Get statistics from all servers in pool
()
Example 1315. Memcache::getExtendedStats() example<?php The above example will output: Array Code Examples / Notes » memcache_getextendedstatsalex dot dean
Apparently, a notice-level error is raised when the memcache client discovers a failed memcached server. (mod_php 5.1.2 on Apache 2.2) <?php $memcache = new Memcache; $memcache->addServer( 'good_host.example.com', 11211 ); $memcache->addServer( 'dead_host.example.com', 11211 ); // get stats for all servers $stats = $memcache->getExtendedStats(); print_r( $stats ); ?> Output includes : Notice: Memcache::getextendedstats() [function.getextendedstats.html]: marked server 'dead_host.example.com' as failed in memcache.php on line 12 |
Change LanguageMemcache::add Memcache::addServer Memcache::close Memcache::connect memcache_debug Memcache::decrement Memcache::delete Memcache::flush Memcache::get Memcache::getExtendedStats Memcache::getServerStatus Memcache::getStats Memcache::getVersion Memcache::increment Memcache::pconnect Memcache::replace Memcache::set Memcache::setCompressThreshold Memcache::setServerParams |