You are here

function sendMemcacheCommands in Production check & Production monitor 7

Same name and namespace in other branches
  1. 6 includes/prod_check.memcache.inc \sendMemcacheCommands()
2 calls to sendMemcacheCommands()
getCacheItems in includes/prod_check.memcache.inc
getMemcacheStats in includes/prod_check.memcache.inc

File

includes/prod_check.memcache.inc, line 65

Code

function sendMemcacheCommands($command) {
  global $MEMCACHE_SERVERS;
  $result = array();
  foreach ($MEMCACHE_SERVERS as $server) {
    $strs = get_host_port_from_server($server);
    $host = $strs[0];
    $port = $strs[1];
    $result[$server] = sendMemcacheCommand($host, $port, $command);
  }
  return $result;
}