/**
  * Returns the key=value hash of found values specified by the list of keys
  * @return array
  */
 function getList(array $keys)
 {
     //WOW
     $mappedKeys = array();
     $mangledKeys = array();
     foreach ($keys as $key) {
         $mangledKey = $this->mangleKey($key);
         $mappedKeys[$mangledKey] = $key;
         $mangledKeys[] = $mangledKey;
     }
     $fetchedValues = $this->peer->getList($mangledKeys);
     $fetchedDemangledValues = array();
     foreach ($fetchedValues as $fetchedMangledKey => $fetchedValue) {
         $fetchedDemangledKey = $mappedKeys[$fetchedMangledKey];
         $fetchedDemangledValues[$fetchedDemangledKey] = $fetchedValue;
     }
     return $fetchedDemangledValues;
 }
 protected function clientTestMultiGet(CachePeer $cache)
 {
     $cache->clean();
     $cache->set('a', 'a', Cache::EXPIRES_MEDIUM);
     $cache->set('b', 2, Cache::EXPIRES_MEDIUM);
     $cache->set('c', 42.28, Cache::EXPIRES_MEDIUM);
     $this->assertEquals($cache->get('a'), 'a');
     $this->assertEquals($cache->get('b'), 2);
     $this->assertEquals($cache->get('c'), 42.28);
     $list = $cache->getList(array('a', 'b', 'c'));
     $this->assertEquals(count($list), 3);
     $this->assertEquals($list['a'], 'a');
     $this->assertEquals($list['b'], 2);
     $this->assertEquals($list['c'], 42.28);
     $list = $cache->getList(array('a'));
     $this->assertEquals(count($list), 1);
     $this->assertEquals($list['a'], 'a');
     $list = $cache->getList(array('a', 'b', 'c', 'd'));
     $this->assertEquals(count($list), 3);
     $this->assertEquals($list['a'], 'a');
     $this->assertEquals($list['b'], 2);
     $this->assertEquals($list['c'], 42.28);
     $list = $cache->getList(array('d'));
     $this->assertEquals(count($list), 0);
     $cache->clean();
 }
 public function getList($indexes)
 {
     return $this->innerPeer->getList($indexes);
 }