pecl install memcached

PHP extension for interfacing with memcached via libmemcached library

This extension uses libmemcached library to provide API for communicating with memcached servers.

Version 2.0.0b2 change log

- Make it work with libmemcached up to 0.49.
- Fix a case where invalid session ID could lock the script.
- Improve session support:
* Add support for libmemcached config string
* Add persistence support via PERSISTENT=persistent_id prefix
of the save_path
- Add 3rd parameter to the __construct() that allows specification
of libmemcached configuration string
- Fix a possible crash in __construct() when using persistent
- Add work-around a bug in libmemcached < 0.50 that causes truncation
of last character of server key prefix
- When using multiple servers implement transparent fail-over
- Fix php_memc_cas_impl() implementation when server_key is not being used
- Add support for incrementByKey() and decrementByKey()
- Make increment/decrement initialize value when it is not available (when
using binary protocol)


  • Andrei Zmievski (lead )
  • Mikko Koppanen (lead )
  • Aaron Stone (lead )
  • Remi Collet (lead )
  • Aaron Stone (lead )



Stars: 983
Issue openned: 50
Downloads: 16843002
13 years ago


  • php >=5.2.0<=6.0.0
  • pearinstaller >=1.4.0b1
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.