Skip to content
Snippets Groups Projects
Commit 710cb4e9 authored by Olav Morken's avatar Olav Morken
Browse files

Memcache: Added getRawStats function.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@717 44740490-163a-0410-bde0-09ae8108e29a
parent bbbd6339
No related branches found
No related tags found
No related merge requests found
......@@ -408,5 +408,23 @@ class SimpleSAML_Memcache {
return $ret;
}
/**
* Retrieve statistics directly in the form returned by getExtendedStats, for
* all server groups.
*
* @return Array with the extended stats output for each server group.
*/
public static function getRawStats() {
$ret = array();
foreach(self::getMemcacheServers() as $sg) {
$stats = $sg->getExtendedStats();
$ret[] = $stats;
}
return $ret;
}
}
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment