src/M6Web/Component/Redis/Cache.php
protected function runOnAllRedisServer(\Closure $func)
    {
        $ret = array();
        // loop on all servers
        foreach (array_keys($this->getServerConfig()) as $serverId) {
            if ($redis = $this->getRedisFromServerConfig($serverId)) {
                $retFunc = $func($redis);
                if (is_array($retFunc)) {
                    $ret = array_merge($ret, $retFunc);
                }
            }
        }

        return $ret;
    }
protected function runOnAllRedisServer(\Closure $func)
    {
        $ret = array();
        // loop on all servers
        foreach (array_keys($this->getServerConfig()) as $serverId) {
            if ($redis = $this->getRedisFromServerConfig($serverId)) {
                $retFunc = $func($redis);
                if (is_array($retFunc)) {
                    $ret = array_merge($ret, $retFunc);
                }
            }
        }

        return $ret;
    }
apply a Closure on all the servers
@param \Closure $func anonymous function

@return array array of results returned bye redis commands