library/Rediska/Command/GetKeysByPattern.php
public function parseResponses($responses)
    {
        $keys = array();
        foreach($responses as $response) {
            if (!empty($response)) {
                $keys = array_merge($keys, is_array($response) ? $response : explode(' ', $response));
            }
        }

        $keys = array_unique($keys);

        if ($this->_rediska->getOption('namespace') != '') {
            $namespaceLength = strlen($this->_rediska->getOption('namespace'));
            foreach($keys as &$key) {
                if (strpos($key, $this->_rediska->getOption('namespace')) === 0) {
                    $key = substr($key, $namespaceLength);
                }
            }
        }

        return $keys;
    }
public function parseResponses($responses)
    {
        $keys = array();
        foreach($responses as $response) {
            if (!empty($response)) {
                $keys = array_merge($keys, is_array($response) ? $response : explode(' ', $response));
            }
        }

        $keys = array_unique($keys);

        if ($this->_rediska->getOption('namespace') != '') {
            $namespaceLength = strlen($this->_rediska->getOption('namespace'));
            foreach($keys as &$key) {
                if (strpos($key, $this->_rediska->getOption('namespace')) === 0) {
                    $key = substr($key, $namespaceLength);
                }
            }
        }

        return $keys;
    }
Parse responses

@param array $responses
@return array