Hey All,

I have been reading today about the difference between PECL Memcache and PECL Memcached.
I wanted to know which one would be the best to install on my server. After much reading I am still not sure which one I should install. But then I thought... I am going to use PECL Memcache or Memcached for one reason, that is this module!

I now know PECL Memcache is the some what older version but more stable.
PECL Memcached has more new features installed and is written by other authors. (speculations about unstable)

But what do these new features mean, if I am just going to use it for this module from drupal "Memcache API and Integration".
So which one would work best with this module? Is there a advantage, if I use PECL Memcached?

I hope somebody can help me out with this decision.

Comments

catch’s picture

Status: Active » Fixed

Memcached has a better feature set, but we have seen several bug reports with Memcached that don't appear to be fixed yet, so the current 6.x-1.9 release defaults to Memcache.

janton’s picture

ok thx! that is exactly what i wanted to hear :)
I will install PECL Memcache now!

Is hope it's not that difficult to change from PECL Memcache to PECL Memcached when the time is there...

ingard’s picture

Which version of PECL Memcache is the recommended one?

Peter Bowey’s picture

Refer #4

Short Answer: The latest *SVN memache* (currently => v3.0.6) - it currently has less 'bugs' than memcached!

I have tested both versions, and researched several reports + issues.

See http://drupal.org/node/1181968 for my setup notes on this (doc's).

Jeremy’s picture

I'd stick with a release, rather than grabbing the latest from SVN. Both the stable 2.2.x and beta 3.0.x branches have proven quite stable in my testing. The 3.0.x branch supports many features people assume are only available in the memcached PECL extension (such as the binary protocol) -- and has been around much longer as well.

Peter Bowey’s picture

#5 can also be compiled 'static' into php-5.3.x binary-by moving the [memcache - PECL] source into the php /ext folder and rebuilding the PHP 'buildconf' - then compile PHP 5.3.x with --enable-memcache (it is *not* essential to use PECL if you are after the best speed - and understand *static* compile builds).

To use Linux sockets with the memcache module - please refer to: http://drupal.org/node/538426

This works well for my multi-hosted Linux server.

Changelog for memcache: from http://pecl.php.net/package-changelog.php?package=memcache&release=3.0.6

3.0.6 	- Fixed PECL Bug #16672 (memcache.php doesn't support unix socket)
- Fixed PECL Bug #19374 (memcache.php throws Notice: Undefined index: VALUE when viewing expired items)
- Fixed PECL Bug #17518 (Strange behavior in increment on non integer and after)
- Fixed potential segfault in memcache queue.
- Fixed various tests
Peter Bowey’s picture

Status: Fixed » Needs review
catch’s picture

Status: Needs review » Fixed

I don't think this needs review, feel free to add to the documentation here though http://drupal.org/node/1131458

Peter Bowey’s picture

Refer #9
@catch thanks!
Will do, did not know what action was 'normal' - to report / expand here - or just move it.... doc's..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

deepakrmklm’s picture

Issue summary: View changes