public function getKeys(array $keys) { $results = parent::getKeys($this->prefixKeys($keys)); if (!$results) { return array(); } return array_combine($this->unprefixKeys(array_keys($results)), $results); }
public function getKeys(array $keys) { $call_id = null; if ($this->getProfiler()) { $call_id = $this->getProfiler()->beginServiceCall(array('type' => 'kvcache-get', 'name' => $this->getName(), 'keys' => $keys)); } $results = parent::getKeys($keys); if ($call_id !== null) { $this->getProfiler()->endServiceCall($call_id, array('hits' => array_keys($results))); } return $results; }