<?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: 使用memcache的几个优点</title>
	<atom:link href="http://www.ooso.net/archives/306/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net/archives/306</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Wed, 11 Jan 2012 15:01:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Volcano</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-29671</link>
		<dc:creator>Volcano</dc:creator>
		<pubDate>Fri, 19 Mar 2010 00:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-29671</guid>
		<description>显然可以共存。从速度上来说， apc &gt; memcache，单机用前者即可。</description>
		<content:encoded><![CDATA[<p>显然可以共存。从速度上来说， apc > memcache，单机用前者即可。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: myDream</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-29668</link>
		<dc:creator>myDream</dc:creator>
		<pubDate>Thu, 18 Mar 2010 18:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-29668</guid>
		<description>APC和memcache可以共存不？如果是单机的话选择哪种缓存方式好些？</description>
		<content:encoded><![CDATA[<p>APC和memcache可以共存不？如果是单机的话选择哪种缓存方式好些？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-23952</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Fri, 20 Jun 2008 05:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-23952</guid>
		<description>看一些文章说xcache是可以和zend optimizer同时生效的，而apc不能，不过我疑惑的是xcache + zend optimizer和apc到底哪个效率更高一点呢？这个有待测试。

至于memcache，它和xcache应用场景很不一样，所以不用比个孰优孰劣。</description>
		<content:encoded><![CDATA[<p>看一些文章说xcache是可以和zend optimizer同时生效的，而apc不能，不过我疑惑的是xcache + zend optimizer和apc到底哪个效率更高一点呢？这个有待测试。</p>
<p>至于memcache，它和xcache应用场景很不一样，所以不用比个孰优孰劣。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maxyma</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-23951</link>
		<dc:creator>maxyma</dc:creator>
		<pubDate>Fri, 20 Jun 2008 02:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-23951</guid>
		<description>memcache有pconnect这个方法可以解决一点socket用时，另外一分支有tag_add/tag_delete两个方法，可以实现的功能更多了，xcache个人感觉比apc或其它同类本地cache效率要高～</description>
		<content:encoded><![CDATA[<p>memcache有pconnect这个方法可以解决一点socket用时，另外一分支有tag_add/tag_delete两个方法，可以实现的功能更多了，xcache个人感觉比apc或其它同类本地cache效率要高～</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-16125</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sat, 15 Sep 2007 03:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-16125</guid>
		<description>另外，xcache是国人参与开发的项目，也有很多不错的评价，所以要支持一下:)</description>
		<content:encoded><![CDATA[<p>另外，xcache是国人参与开发的项目，也有很多不错的评价，所以要支持一下:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-16124</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sat, 15 Sep 2007 03:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-16124</guid>
		<description>我有点偏执，对于要求性能，却不需要集群的功能，我感觉memcache太慢，甚至不如直接的io操作。主要是socket链接的速度慢。因为我自己尝试写守护进程来完成一些后台操作，发现用socket链接守护进程效率不如直接io操作。</description>
		<content:encoded><![CDATA[<p>我有点偏执，对于要求性能，却不需要集群的功能，我感觉memcache太慢，甚至不如直接的io操作。主要是socket链接的速度慢。因为我自己尝试写守护进程来完成一些后台操作，发现用socket链接守护进程效率不如直接io操作。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-16123</link>
		<dc:creator>david</dc:creator>
		<pubDate>Sat, 15 Sep 2007 03:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-16123</guid>
		<description>错过了很多精彩讨论
关于xcache的性能测试，可以参考这个，可能配置上不是很正确，所以导致测试结果有失准确。
http://www.fcicq.net/wp/?p=319
另外，我在试用xcache，却不知道怎么用它的api，以前测试过eacc的api，结果是不能用，可以写入，但无法读出，读的时候apache会挂掉，在两台服务器上测试结果均是如此。</description>
		<content:encoded><![CDATA[<p>错过了很多精彩讨论<br />
关于xcache的性能测试，可以参考这个，可能配置上不是很正确，所以导致测试结果有失准确。<br />
<a href="http://www.fcicq.net/wp/?p=319" rel="nofollow">http://www.fcicq.net/wp/?p=319</a><br />
另外，我在试用xcache，却不知道怎么用它的api，以前测试过eacc的api，结果是不能用，可以写入，但无法读出，读的时候apache会挂掉，在两台服务器上测试结果均是如此。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-16071</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Thu, 13 Sep 2007 06:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-16071</guid>
		<description>apc拿来做opcode缓存还是不错的，至于数据缓存，老实说，不是太放心。</description>
		<content:encoded><![CDATA[<p>apc拿来做opcode缓存还是不错的，至于数据缓存，老实说，不是太放心。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heiyeluren</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-16069</link>
		<dc:creator>heiyeluren</dc:creator>
		<pubDate>Thu, 13 Sep 2007 04:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-16069</guid>
		<description>其实APC的功能比xcache强大一点，不仅有opcode级的缓存，还有类似memcache的数据/变量缓存，像  apc_store, apc_fetch 之类的接口做这些事情，也能够控制包括数据的有效时间等，不过一般适合缓存存储周期长，数据量小的数据。memcached比这个要强大的多，把apc和memcached结合使用是最好的。</description>
		<content:encoded><![CDATA[<p>其实APC的功能比xcache强大一点，不仅有opcode级的缓存，还有类似memcache的数据/变量缓存，像  apc_store, apc_fetch 之类的接口做这些事情，也能够控制包括数据的有效时间等，不过一般适合缓存存储周期长，数据量小的数据。memcached比这个要强大的多，把apc和memcached结合使用是最好的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-10915</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Mon, 18 Jun 2007 15:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-10915</guid>
		<description>xcache不仅仅有着opcode的缓存功能，还提供了一些api用来保存php的变量，如下：

&lt;blockquote&gt;mixed xcache_get(string name)
bool  xcache_set(string name, mixed value [, int ttl])
bool  xcache_isset(string name)
bool  xcache_unset(string name)
int   xcache_inc(string name [, int value [, int ttl]])
int   xcache_dec(string name [, int value [, int ttl]])&lt;/blockquote&gt;

我想david应该说的就是这类功能吧。我个人有在高负载的场合使用memcache来缓存db layer的东东，还有apc缓存php opcdoe，但是还没机会尝试xcache在这种场合下的性能，所以有待试验。</description>
		<content:encoded><![CDATA[<p>xcache不仅仅有着opcode的缓存功能，还提供了一些api用来保存php的变量，如下：</p>
<blockquote><p>mixed xcache_get(string name)<br />
bool  xcache_set(string name, mixed value [, int ttl])<br />
bool  xcache_isset(string name)<br />
bool  xcache_unset(string name)<br />
int   xcache_inc(string name [, int value [, int ttl]])<br />
int   xcache_dec(string name [, int value [, int ttl]])</p></blockquote>
<p>我想david应该说的就是这类功能吧。我个人有在高负载的场合使用memcache来缓存db layer的东东，还有apc缓存php opcdoe，但是还没机会尝试xcache在这种场合下的性能，所以有待试验。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: echo52</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-10911</link>
		<dc:creator>echo52</dc:creator>
		<pubDate>Mon, 18 Jun 2007 14:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-10911</guid>
		<description>两位都有误解，

当php大量访问数据库对数读操作时，应用memcache会减少数据库的访问次数，大大提升php和数据库的运行效率，
而xcache只是用来减少php重新编译的次数以减少系统资源的占用。

两个软件应用的层次不一样。</description>
		<content:encoded><![CDATA[<p>两位都有误解，</p>
<p>当php大量访问数据库对数读操作时，应用memcache会减少数据库的访问次数，大大提升php和数据库的运行效率，<br />
而xcache只是用来减少php重新编译的次数以减少系统资源的占用。</p>
<p>两个软件应用的层次不一样。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-9225</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Fri, 01 Jun 2007 08:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-9225</guid>
		<description>单机下memcache没有太大的优势:)但是利于扩展</description>
		<content:encoded><![CDATA[<p>单机下memcache没有太大的优势:)但是利于扩展</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://www.ooso.net/archives/306/comment-page-1#comment-9215</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 01 Jun 2007 04:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/306#comment-9215</guid>
		<description>单机状态下memcache的速度并不快，因为每次都要建立连接，如果不考虑分布式，还是用xcache之类的速度更快。</description>
		<content:encoded><![CDATA[<p>单机状态下memcache的速度并不快，因为每次都要建立连接，如果不考虑分布式，还是用xcache之类的速度更快。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

