Predis\Command\ServerInfo::parseAllocationStats PHP Метод

parseAllocationStats() защищенный Метод

Parses the response and extracts the allocation statistics.
protected parseAllocationStats ( string $str ) : array
$str string Response buffer.
Результат array
    protected function parseAllocationStats($str)
    {
        $stats = array();
        foreach (explode(',', $str) as $kv) {
            @(list($size, $objects, $extra) = explode('=', $kv));
            // hack to prevent incorrect values when parsing the >=256 key
            if (isset($extra)) {
                $size = ">={$objects}";
                $objects = $extra;
            }
            $stats[$size] = $objects;
        }
        return $stats;
    }