<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: memcached: high-performance, distributed memory object caching system</title>
	<atom:link href="http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/</link>
	<description>Understanding technology</description>
	<lastBuildDate>Fri, 29 Jan 2010 06:20:34 +0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: td2n8pf</title>
		<link>http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/comment-page-1/#comment-25</link>
		<dc:creator>td2n8pf</dc:creator>
		<pubDate>Sat, 11 Jul 2009 06:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/#comment-25</guid>
		<description>Thanks . thats a great post</description>
		<content:encoded><![CDATA[<p>Thanks . thats a great post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: satish_gaude</title>
		<link>http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/comment-page-1/#comment-4</link>
		<dc:creator>satish_gaude</dc:creator>
		<pubDate>Thu, 25 Jun 2009 15:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://satishgaudo.com/satblog/2009/06/25/memcached-high-performance-distributed-memory-object-caching-system/#comment-4</guid>
		<description>&lt;?
/**
 * Example php script to implement the memcache class 
*/
/**
 * Class instance: memcache  
*/
$cache = new Cache;

$key = $_REQUEST[&#039;key&#039;];
$keys = explode(&quot;_&quot;, $key);
$id = $keys[0].&quot;_&quot;.$keys[1];
//get value for specific key from memcache
$array = $cache-&gt;get($id);

// check if there already exists a record in the mem cache
// if no
if(!$array) 
{
	if($keys[2]==1)
		$array  = Array(&quot;thumbsup&quot;=&gt;1,&quot;thumbsdown&quot;=&gt;0);
	else if($keys[2]==2)
		$array  = Array(&quot;thumbsup&quot;=&gt;0,&quot;thumbsdown&quot;=&gt;1);
	$cache-&gt;set($id,$array);
}
else 
{
	// increment the count
	if($keys[2]==1)
		$type = &quot;thumbsup&quot;;
	else if($keys[2]==2)
		$type = &quot;thumbsdown&quot;;

	$array[$type]  = $array[$type]+1;
	$cache-&gt;set($id,$array);
}</description>
		<content:encoded><![CDATA[<p>< ?<br />
/**<br />
 * Example php script to implement the memcache class<br />
*/<br />
/**<br />
 * Class instance: memcache<br />
*/<br />
$cache = new Cache;</p>
<p>$key = $_REQUEST['key'];<br />
$keys = explode("_", $key);<br />
$id = $keys[0]."_".$keys[1];<br />
//get value for specific key from memcache<br />
$array = $cache->get($id);</p>
<p>// check if there already exists a record in the mem cache<br />
// if no<br />
if(!$array)<br />
{<br />
	if($keys[2]==1)<br />
		$array  = Array(&#8221;thumbsup&#8221;=>1,&#8221;thumbsdown&#8221;=>0);<br />
	else if($keys[2]==2)<br />
		$array  = Array(&#8221;thumbsup&#8221;=>0,&#8221;thumbsdown&#8221;=>1);<br />
	$cache->set($id,$array);<br />
}<br />
else<br />
{<br />
	// increment the count<br />
	if($keys[2]==1)<br />
		$type = &#8220;thumbsup&#8221;;<br />
	else if($keys[2]==2)<br />
		$type = &#8220;thumbsdown&#8221;;</p>
<p>	$array[$type]  = $array[$type]+1;<br />
	$cache->set($id,$array);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
