Retrieve item from the server.
string|array $key:
integer|array $flags:
mixed
public function get($key, &$flags = null) {
if (!$this->connected) {
return false;
}
if (is_array($key)) {
$result = array();
foreach ($key as $k) {
if (isset($this->storage[$k])) {
$result[] = $this
->getData($k);
}
}
return $result;
}
return $this
->getData($key);
}