Clickalicious\PhpMemAdmin\App::retrieveStoredData PHP Method

retrieveStoredData() protected method

Returns the stored data from a Memcached instance.
Author: Benjamin Carl ([email protected])
protected retrieveStoredData ( string $host, integer $port ) : array
$host string The host to return data from
$port integer The port the Memcached daemon is listening on
return array The data requested
    protected function retrieveStoredData($host, $port)
    {
        $result = array();
        // But at the end we will always fetch data ...
        try {
            $result = $this->dumpEntries($host, $port, null, true);
        } catch (\Exception $e) {
            $this->setError($e->getMessage());
        }
        return $result;
    }