「转」Memcache和Memcached客户端的区别
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了「转」Memcache和Memcached客户端的区别,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1693字,纯文字阅读大概需要3分钟。
内容图文
![「转」Memcache和Memcached客户端的区别](/upload/InfoBanner/zyjiaocheng/557/4da6e08c644f446ca29760146f5e1fab.jpg)
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–
原文链接:https://code.google.com/p/memcached/wiki/PHPClientComparison
PS:Memcache会将数字转成字符串存储这个坑刚踩到过~
评论| 作者: tomheng 85159e08d5f1f50d244825cb03e92c65
内容总结
以上是互联网集市为您收集整理的「转」Memcache和Memcached客户端的区别全部内容,希望文章能够帮你解决「转」Memcache和Memcached客户端的区别所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。