$cache->setItem(array('key1', 'key2', 'key3'), 'value');
$cache->getItem('key1');
$cache->getItem('key2');
$cache->getItem('key3');
$allKeys = array(
'Page' => array('page1', 'page2', ...),
);
function getKey($searchKey){
foreach($allKeys as $mainKey => $keys){
if (array_key_exists($searchKey, $keys[$mainKey])){
return $keys[$maintKey][$searchKey];
}
return null;
}
}
$key = getKey('page1');// or getKey('page2') // return Page
$cache->getItem($key);