Git Product home page Git Product logo

obitel-forks / aws-elasticache-cluster-client-memcached-for-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awslabs/aws-elasticache-cluster-client-memcached-for-php

0.0 2.0 0.0 1.13 MB

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.

License: Other

M4 3.75% JavaScript 0.20% C 58.88% C++ 1.99% PHP 35.17%

aws-elasticache-cluster-client-memcached-for-php's Introduction

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


aws-elasticache-cluster-client-memcached-for-php's People

Contributors

danzamansky avatar hyandell avatar quchen88 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.