What is the difference between Memcache and Memcached client?

Source: Internet
Author: User
PHPClientComparisonThereareprimarilytwoclientsusedwithPHP. Oneistheolder, morewidespread? Peclmemcache? Andtheotheristhenewer, lessused, morefeaturerich? Peclmemcached. bothsuppthethebasicssuchasmultipleservers,

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 serialation2 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
  1. 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.
  2. 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-

Link: https://code.google.com/p/memcached/wiki/PHPClientComparison

PS: Memcache will convert the number into a string to store this pitfall ~

Comments | Author: tomheng 85159e08d5f1f50d244825cb03e92c65PHP Client Comparison There are primarily two clients u […]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.