$cacheKey = 'CODE_CODE'.Mage::app()->
getStore()->getId();
if (Mage::app()->useCache('config') && $collection = Mage::app()->loadCache($cacheKey)) {
$prod = unserialize($collection);
} else {
$prod = Mage::getModel()->getCollection;
....
if (Mage::app()->useCache('config')) {
Mage::app()->saveCache(serialize($prod), $cacheKey, array('config'));
}
}