forked from mtaneja/php-pecl-memcache-zynga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
55 lines (38 loc) · 2.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 <[email protected]>
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