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,
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 |
—end–
原文链接:https://code.google.com/p/memcached/wiki/PHPClientComparison
PS:Memcache会将数字转成字符串存储这个坑刚踩到过~
PHP Client Comparison There are primarily two clients u […]
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号