Skip to content

maniktaneja/php-pecl-memcache-zynga

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zynga memcached module for PHP
------------------------------
Added support for memcache connection multiplexer - mcmux

The original PHP memcache module is changed in such a way that if 
mcmux is enabled, instead of directly connecting to the memcache 
server, all memcache connections are proxied through mcmux. 
The client (php memcache module) sends the ip address and port of the 
memcache server along with each request so that mcmux can allot a 
connection from a pool of connections that it maintains per memcache 
server. The protocol between mcmux and the client is a modified version 
of the ascii memcache protocol.

Three new ini settings are added to the memcache module to enable mcmux:

memcache.proxy_enabled = 1/0 - switches proxy support on/off
memcache.proxy_host = hostname_of_mcmux or unix:///path/to/unixsocket
memcache.proxy_port = port_of_mcmux or 0 if unix socket

If proxy support is disabled (proxy_enabled == 0), the module behaves 
exactly same as the OOB php memcache plugin. If it is enabled but if the 
proxy is not reachable, it prints out a warning in the log file and 
returns connection error.

Building:

    Make sure php-devel, php-pear, bzip2, bzip2-devel packages are installed
    Please install igbinary and minilzo. These rpms can be installed from the following 
    git links :
        https://github.com/nimishzynga/minilzo/releases/download/1/minilzo-2.03-6.x86_64.rpm
        https://github.com/nimishzynga/php-igbinary/releases/download/1/php-igbinary-1.1.1-0_5.2.10.x86_64.rpm
 

    run ./build-rpm.sh for creating the rpm




In case of issues/queries, contact Jayesh Jose <jjose@zynga.com>


memcached module for PHP
------------------------
This module requires zlib library, used for on-the-fly data (de)compression.
Also, you'll need memcached to use it =)

The memcached website is here:
    http://www.danga.com/memcached/

You will probably need libevent to install memcached:
You can download it here: http://www.monkey.org/~provos/libevent/

Maintainers:
Mikael Johansson	mikael at synd dot info
Antony Dovgal		tony at daylessday dot org

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 69.4%
  • PHP 16.4%
  • C 13.2%
  • Shell 1.0%