I’m developing RSS feed widget for Magento. Now I need to use Magento cache to store feeds, so that feeds are not loaded on every request. How can I store my own items to Magento cache or is that possible at all?
What I need is :
// My item
$myItem = "My feed";
// Put stuff to cache
$cache->put("MyCacheId", $myItem);
// Get stuff from cache
$cache->get("MyCacheId");
is your desired method here.
In core you’ll often find method access like follow:
Good luck.