Home > PHP > Memcached

APC: http://pecl.php.net/package/APC

Example:

$cache = apc_fetch('news');

if (!$cache) {
$cache = file_get_contents('http://news.com/news.xml');
apc_store('news', $feed, 300); // 300 seconds
}



Flag Counter