<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[php获取memcache内所有键值对]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Cache与Store]]></category>
<pubDate>Wed, 30 Jan 2013 02:53:16 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：<br/>&nbsp;&nbsp;&nbsp;&nbsp; Memcache这个存起来的数据，有时要看全面点，有时php代码里可以看到key，然后，通过telnet去查，<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.jackxiang.com/post/2484/<br/>&nbsp;&nbsp;&nbsp;&nbsp;但有一个可以遍历的程序也算是方便不少。<br/><br/><textarea name="code" class="php" rows="15" cols="100">
&lt;?php
&nbsp;&nbsp;&nbsp;&nbsp;$host=&#039;localhost&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;$port=11211;
&nbsp;&nbsp;&nbsp;&nbsp;$mem=new Memcache();
&nbsp;&nbsp;&nbsp;&nbsp;$mem-&gt;connect($host,$port);
&nbsp;&nbsp;&nbsp;&nbsp;$items=$mem-&gt;getExtendedStats (&#039;items&#039;);
&nbsp;&nbsp;&nbsp;&nbsp;$items=$items[&quot;$host:$port&quot;][&#039;items&#039;];
&nbsp;&nbsp;&nbsp;&nbsp;foreach($items as $key=&gt;$values)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$number=$key;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$str=$mem-&gt;getExtendedStats (&quot;cachedump&quot;,$number,0);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$line=$str[&quot;$host:$port&quot;];
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( is_array($line) &amp;&amp; count($line)&gt;0)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach($line as $key=&gt;$value)&#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo $key.&#039;=&gt;&#039;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print_r($mem-&gt;get($key));
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;&lt;p&gt;&quot;;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;
&nbsp;&nbsp;&nbsp;&nbsp;&#125;
?&gt;
</textarea><br/><br/>来源：http://www.cnblogs.com/sunli/archive/2008/11/01/1324153.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] php获取memcache内所有键值对]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>