PHP Client Comparison there are primarily two clients used with php. one is the older, more widespread?pecl/memcache?and the other is the newer, less used, more feature rich?pecl/memcached. Both support the basics such as multiple servers,
PHP Client Comparison
there are primarily two clients used with php. one is the older, more widespread?pecl/memcache?and the other is the newer, less used, more feature rich?pecl/memcached.
Both support the basics such as multiple servers, setting vaules, getting values, increment, decrement and getting stats.
Here are some more advanced features and information.
| pecl/memcache | pecl/memcached | |
|---|---|---|
| First Release Date | 2004-06-08 | 2009-01-29 (beta) |
| Actively Developed? | Yes | Yes |
| External Dependency | None | libmemcached |
| Features | ||
| Automatic Key Fixup1 | Yes | No |
| Append/Prepend | No | Yes |
| Automatic Serialzation2 | Yes | Yes |
| Binary Protocol | No | Optional |
| CAS | No | Yes |
| Compression | Yes | Yes |
| Communication Timeout | Connect Only | Various Options |
| Consistent Hashing | Yes | Yes |
| Delayed Get | No | Yes |
| Multi-Get | Yes | Yes |
| Session Support | Yes | Yes |
| Set/Get to a specific server | No | Yes |
| Stores Numerics | Converted to Strings | Yes |
- pecl/memcache will convert an invalid key into a valid key for you. pecl/memcached will return false when trying to set/get a key that is not valid.
- You do not have to serialize your objects or arrays before sending them to the set commands. Both clients will do this for you.
—end–
nopCommerce 是一个由ASP.NET多层模式开发的开源电子商城系统,可以自行设置模板、配置灵活、功能强大,它内含一个目录前端和一个管理工具后端。前端包括用户注册、商品购买(可以进行评论)、投票、Blog等,后端有类别管理、产品管理、客户及角色管理、订单管理、纳税管理、国家(地区管理)、邮件发送、消息模板、新闻发布、blog管理,可以对列表数据进行XML导出。
原文链接:https://code.google.com/p/memcached/wiki/PHPClientComparison
PS:Memcache会将数字转成字符串存储这个坑刚踩到过~
评论| 作者: tomheng 85159e08d5f1f50d244825cb03e92c65
PHP Client Comparison There are primarily two clients u […]









