Maison > Article > base de données > 「转」Memcache 和 Memcached 客户端的区别
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会将数字转成字符串存储这个坑刚踩到过~