<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wide thoughts &#187; caching</title>
	<atom:link href="http://gasper.kozak.si/blog/tag/caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://gasper.kozak.si/blog</link>
	<description>a blog of one of those ... software developer geezers</description>
	<lastBuildDate>Sun, 22 Jan 2012 00:03:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Introducing LayerCache</title>
		<link>http://gasper.kozak.si/blog/2009/08/26/introducing-layercache/</link>
		<comments>http://gasper.kozak.si/blog/2009/08/26/introducing-layercache/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 17:52:17 +0000</pubDate>
		<dc:creator>Gašper</dc:creator>
				<category><![CDATA[LayerCache]]></category>
		<category><![CDATA[APC]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[open-source]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://kozak.si/widethoughts/?p=464</guid>
		<description><![CDATA[I&#8217;ve recently started a new project, called LayerCache. It&#8217;s an easy-to-use caching framework for PHP5, which allows you to cache items in multiple layers. When a requested item isn&#8217;t present in one layer, the framework reads from the next layer in the stack. If the item isn&#8217;t present in any layer, it&#8217;s retrieved from the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started a new project, called LayerCache. It&#8217;s an easy-to-use caching framework for PHP5, which allows you to cache items in multiple layers. When a requested item isn&#8217;t present in one layer, the framework reads from the next layer in the stack. If the item isn&#8217;t present in any layer, it&#8217;s retrieved from the source and stored in all caches in the stack.</p>
<p>An example of usage would be caching user profiles in Memcache (bigger, slower, global to all webservers) and APC (smaller, faster, local to each webserver). It also offers a mechanism called <em>prefetch</em>, which aims to reduce the database hit when an item is removed from the cache because of age (ttl).</p>
<p>Currently, the framework offers interfaces to Memcache, APC, file caching and local caching (PHP array with LRU, caching in a request scope). I&#8217;ll probably add more caching interfaces support as the project evolves. There is no documentation, apart from examples (see link bellow) and unit tests (yes, that counts as documentation). The current code is fully tested with PHPUnit, but no stable package is currently available.</p>
<p>For more, visit the following links:</p>
<ul>
<li><a href="http://code.google.com/p/layercache/">Project web site</a></li>
<li><a href="http://code.google.com/p/layercache/wiki/Introduction">Introduction</a></li>
<li><a href="http://code.google.com/p/layercache/wiki/Examples">Examples</a></li>
<li><a href="http://code.google.com/p/layercache/source/checkout">Browse SVN</a></li>
<li><a href="https://www.ohloh.net/p/layercache">LayerCache Ohloh profile</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gasper.kozak.si/blog/2009/08/26/introducing-layercache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

