public function testGetMulti() { $localValues = array('key' => 'value'); $cacheValues = array('key2' => 'value2'); foreach ($localValues as $key => $value) { $this->bufferedCache->set($key, $value); } foreach ($cacheValues as $key => $value) { $this->cache->set($key, $value); } // check that we're able to read the values from both buffered & real cache $this->assertEquals($localValues + $cacheValues, $this->bufferedCache->getMulti(array_keys($localValues + $cacheValues))); // tearDown will cleanup everything that's been stored via buffered cache, // however, this one went directly to real cache - clean up! $this->cache->delete('key2'); }
/** * @param array $keys * @return array */ public function getMulti(array $keys) { return $this->cache->getMulti($keys); }