public function getMultiple(array $keys, array $options = array()) { // prepare keys $keyMap = array(); $prefixedKeys = array(); foreach ($keys as $key) { $prefixedKey = $this->prefix . $key; $prefixedKeys[] = $prefixedKey; $keyMap[$prefixedKey] = $key; } // fetch the values $values = $this->wrappedCache->getMultiple($prefixedKeys, $options); // remap the value array to use the original keys $output = array(); foreach ($keyMap as $prefixedKey => $key) { $output[$key] = $values[$prefixedKey]; } return $output; }