public function read(array $keys)
{
if ($this->_config['scope']) {
$keys = $this->_addScopePrefix($this->_config['scope'], $keys, '_');
}
$results = array();
foreach ($keys as $key) {
if (!($item = $this->_read($key))) {
continue;
}
if ($item['expiry'] < time() && $item['expiry'] != 0) {
$this->_delete($key);
continue;
}
$results[$key] = $item['value'];
}
if ($this->_config['scope']) {
$results = $this->_removeScopePrefix($this->_config['scope'], $results, '_');
}
return $results;
}