PHP的两个memcache扩展 memcache和…
2013-03-28 21:57
453 查看
从手册上明显可以看到这两个扩展:
http://php.net/manual/en/book.memcache.php http://php.net/manual/en/book.memcached.php
在Q群里问了下,没有人能分辨出它们的差别,甚至有人怀疑我说的 Memcache 是 Memcached 服务器(守护进程)。
从手册上看,memcached 会比 memcache 多几个方法,使用方式上都差不多。
看看严谨的老外们怎么说的:
http://stackoverflow.com/questions/1442411/using-memcache-vs-memcached-with-php
Memcached client library was just recently released as stable. It
is being used by digg ( was developed for digg by Andrei Zmievski,
now no longer with digg) and implements much more of the memcached
protocol than the older memcache client.
memcached 实现了更多的 memcached 协议(毕竟是基于 libmemcached 库的)。
http://serverfault.com/questions/63383/memcache-vs-memcached
As Nate’s link suggests, both work perfectly well for simple usage.
However, memcached supports more features that allow you to get the
most performance out of memcached. The binary protocol reduces the
amount of data required to be sent between client and server.
Multigets and multisets allow you to get/set multiple items at the
same time. If you’re finding you need more oomph out of memcache,
memcached is the better module. The use of libmemcached suggests
that the library itself is possibly more optimised than the PHP
only version.
Memcached is a more recent module compared to memcache, having only
been released 8 months ago. If you need to target an older version
of PHP, then you can only really use memcache.
memcached 的版本比较新,而且使用的是 libmemcached 库。libmemcached 被认为做过更好的优化,应该比
php only 版本的 memcache 有着更高的性能。
这里有另外一个对比表,很明显,用 memcached 会让人放心很多:
http://code.google.com/p/memcached/wiki/PHPClientComparison
差别比较大的一点是,memcached 支持 Binary Protocol,而 memcache 不支持,意味着 memcached
会有更高的性能。不过,还需要注意的是,memcached 目前还不支持长连接:
pecl/memcached does not support failover or persistent connections.
This is quite annoying, since I’m sure the underlying libmemcached
C library supports both.
pecl/memcache does not have the very handy getServerByKey() method,
which is immensely useful when debugging.
在这里,我推荐大家使用 memcached
memcache和memcached(一)" />
http://php.net/manual/en/book.memcache.php http://php.net/manual/en/book.memcached.php
在Q群里问了下,没有人能分辨出它们的差别,甚至有人怀疑我说的 Memcache 是 Memcached 服务器(守护进程)。
从手册上看,memcached 会比 memcache 多几个方法,使用方式上都差不多。
看看严谨的老外们怎么说的:
http://stackoverflow.com/questions/1442411/using-memcache-vs-memcached-with-php
Memcached client library was just recently released as stable. It
is being used by digg ( was developed for digg by Andrei Zmievski,
now no longer with digg) and implements much more of the memcached
protocol than the older memcache client.
memcached 实现了更多的 memcached 协议(毕竟是基于 libmemcached 库的)。
http://serverfault.com/questions/63383/memcache-vs-memcached
As Nate’s link suggests, both work perfectly well for simple usage.
However, memcached supports more features that allow you to get the
most performance out of memcached. The binary protocol reduces the
amount of data required to be sent between client and server.
Multigets and multisets allow you to get/set multiple items at the
same time. If you’re finding you need more oomph out of memcache,
memcached is the better module. The use of libmemcached suggests
that the library itself is possibly more optimised than the PHP
only version.
Memcached is a more recent module compared to memcache, having only
been released 8 months ago. If you need to target an older version
of PHP, then you can only really use memcache.
memcached 的版本比较新,而且使用的是 libmemcached 库。libmemcached 被认为做过更好的优化,应该比
php only 版本的 memcache 有着更高的性能。
这里有另外一个对比表,很明显,用 memcached 会让人放心很多:
http://code.google.com/p/memcached/wiki/PHPClientComparison
差别比较大的一点是,memcached 支持 Binary Protocol,而 memcache 不支持,意味着 memcached
会有更高的性能。不过,还需要注意的是,memcached 目前还不支持长连接:
pecl/memcached does not support failover or persistent connections.
This is quite annoying, since I’m sure the underlying libmemcached
C library supports both.
pecl/memcache does not have the very handy getServerByKey() method,
which is immensely useful when debugging.
在这里,我推荐大家使用 memcached
memcache和memcached(一)" />
相关文章推荐
- php的两个memcached扩展 memcache…
- memcached的安装以及php两个扩展软件安装(memcache、memcached)
- 安装使用php zlib扩展实现页面gzip…
- redis和 redis的php扩展
- 安装memcached服务和PECL关于memcache的两个PHP扩展
- php 的两个扩展 memcache 和 memcachd
- 话说PHP的Memcache & Memcached这两个扩展之间的关系,你都摸清楚了吗?
- PHP 扩展安装出错
- php配置 mysqli扩展
- linux 下编译安装php mongodb扩展
- PHP 的两个 memcache 扩展:memcache 和 memcached(一)
- php的两个memcached扩展:memcache和memcached(二)
- php的两个memcached扩展:memcache和memcached
- linux下PHP5.5的安装【oci8,pdo-oci,memcache,Zend OPCache扩展】
- PHP 浮点型数据
- PHP动态编译出现Cannot find autoconf 动态编译PHP的memcache扩展库
- memcached安装和php扩展memcache安装
- php的memcache扩展编译
- linux下 安装 ImageMagick 及其 php imagick扩展
- linux centos 安装php的memcache扩展