Skip to content
Amazon ElastiCache Cluster Client is an enhanced PHP library to connect to ElastiCache clusters. This client library has been built upon libmemcached and is released under the Apache License.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fastlz
tests
CREDITS
ChangeLog
INSTALL Update INSTALL instructions and some license texts. Jul 30, 2015
LICENSE
NOTICE
README.markdown
config.m4 php-memcached extension v 2.1.0 Jul 29, 2015
config.w32
g_fmt.c php-memcached extension v 2.1.0 Jul 29, 2015
g_fmt.h
memcached-api.php Update INSTALL instructions and some license texts. Jul 30, 2015
memcached.ini
package.xml php-memcached extension v 2.1.0 Jul 29, 2015
php_libmemcached_compat.h php-memcached extension v 2.1.0 Jul 29, 2015
php_memcached.c
php_memcached.h
php_memcached_session.c php-memcached extension v 2.1.0 Jul 29, 2015
php_memcached_session.h

README.markdown

Amazon ElastiCache Cluster Client

Amazon ElastiCache Cluster Client is used to connect to ElastiCache for Memcached clusters. This extension uses Amazon ElastiCache fork of libmemcached library to provide API for communicating with ElastiCache servers. Our changes are based on open-source memcached extension v.2.1.0 from https://github.com/php-memcached-dev/php-memcached. This code branch is compatible with PHP 5.x. Other PHP versions (including PHP 7.x) are not supported. This client library is released under the Apache 2.0 License.

Building

To compile this package to generate the PHP Memcached extension, do the following set of steps (verified on Amazon Linux 201503 AMI):

  1. Install the required dependencies.

sudo yum install php php-devel zlib-devel php-pear

  1. Checkout and compile the dependency package aws-elasticache-cluster-client-libmemcached via https://github.com/awslabs/aws-elasticache-cluster-client-libmemcached

Note: if you want to compile the PHP-memcached client with igbinary support, run the following additional command to install igbinary

sudo pecl install igbinary

  1. Run the following set of commands under the current directory:

phpize

./configure --with-libmemcached-dir=<path to libmemcached build directory> <other options>

For igbinary support, specify "--enable-memcached-igbinary" in "other options".

Note: you can statically link the libmemcached library into the PHP binary so it can be ported across various Linux platforms. To do that, run the following command, otherwise proceed to "make"

sed -i "s#-lmemcached#<libmemcached build directory>/lib/libmemcached.a -lcrypt -lpthread -lm -lstdc++ -lsasl2#" Makefile

make

make install

Resources


You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.