Debian Codegraph @

doc/modules/mod_memcache.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_memcache</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_memcache</code></b></h2>
12 </center>
13 <hr><br>
14
15 <p>
16 The <code>mod_memcache</code> module enables ProFTPD support for caching
17 data in <a href="http://memcached.org">memcached</a> servers, using the
18 <a href="http://libmemcached.org">libmemcached</a> client library. Note
19 that <code>libmemcached</code> version 0.41 or later is <b>required</b>.
20
21 <h2>Directives</h2>
22 <ul>
23 <li><a href="#MemcacheEngine">MemcacheEngine</a>
24 <li><a href="#MemcacheLog">MemcacheLog</a>
25 <li><a href="#MemcacheOptions">MemcacheOptions</a>
26 <li><a href="#MemcacheReplicas">MemcacheReplicas</a>
27 <li><a href="#MemcacheServers">MemcacheServers</a>
28 <li><a href="#MemcacheTimeouts">MemcacheTimeouts</a>
29 </ul>
30
31 <hr>
32 <h3><a name="MemcacheEngine">MemcacheEngine</a></h3>
33 <strong>Syntax:</strong> MemcacheEngine <em>on|off</em><br>
34 <strong>Default:</strong> MemcacheEngine off<br>
35 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
36 <strong>Module:</strong> mod_memcache<br>
37 <strong>Compatibility:</strong> 1.3.4rc2 and later
38
39 <p>
40 The <code>MemcacheEngine</code> directive enables or disables the
41 <code>mod_memcache</code> module, and thus the configuration of memcache
42 support for the <code>proftpd</code> daemon.
43
44 <p>
45 <hr>
46 <h3><a name="MemcacheLog">MemcacheLog</a></h3>
47 <strong>Syntax:</strong> MemcacheLog <em>path|"none"</em><br>
48 <strong>Default:</strong> None<br>
49 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
50 <strong>Module:</strong> mod_memcache<br>
51 <strong>Compatibility:</strong> 1.3.4rc2 and later
52
53 <p>
54 The <code>MemcacheLog</code> directive is used to specify a log file for
55 <code>mod_memcache</code>'s reporting on a per-server basis. The
56 <em>file</em> parameter given must be the full path to the file to use for
57 logging.
58
59 <p>
60 Note that this path must <b>not</b> be to a world-writable directory and,
61 unless <code>AllowLogSymlinks</code> is explicitly set to <em>on</em>
62 (generally a bad idea), the path must <b>not</b> be a symbolic link.
63
64 <p>
65 <hr>
66 <h3><a name="MemcacheOptions">MemcacheOptions</a></h3>
67 <strong>Syntax:</strong> MemcacheOptions <em>opt1 ... optN</em><br>
68 <strong>Default:</strong> None<br>
69 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
70 <strong>Module:</strong> mod_memcache<br>
71 <strong>Compatibility:</strong> 1.3.4rc2 and later
72
73 <p>
74 The currently supported <code>MemcacheOptions</code> are:
75 <ul>
76 <li><code>NoBinaryProtocol</code>
77 </ul>
78
79 <p>
80 <hr>
81 <h3><a name="MemcacheReplicas">MemcacheReplicas</a></h3>
82 <strong>Syntax:</strong> MemcacheReplicas <em>count</em><br>
83 <strong>Default:</strong> None<br>
84 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
85 <strong>Module:</strong> mod_memcache<br>
86 <strong>Compatibility:</strong> 1.3.4rc2 and later
87
88 <p>
89 <em>Experimental feature</em>
90
91 <p>
92 <hr>
93 <h3><a name="MemcacheServers">MemcacheServers</a></h3>
94 <strong>Syntax:</strong> MemcacheServers <em>servers</em><br>
95 <strong>Default:</strong> None<br>
96 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
97 <strong>Module:</strong> mod_memcache<br>
98 <strong>Compatibility:</strong> 1.3.4rc2 and later
99
100 <p>
101 The <code>MemcacheServers</code> directive is used to configure the
102 IP addresses/ports of the <code>memcached</code> servers that the
103 <code>mod_memcache</code> module is to use. The list of servers is expressed
104 as a space-delimited list. For example:
105 <pre>
106 MemcacheServers 1.2.3.4:11211 1.2.3.5:22422
107 </pre>
108
109 <p>
110 Alternatively, you can configure a Unix domain socket path using <i>e.g.</i>:
111 <pre>
112 MemcacheServers /var/run/memcached.sock
113 </pre>
114
115 <p>
116 <hr>
117 <h3><a name="MemcacheTimeouts">MemcacheTimeouts</a></h3>
118 <strong>Syntax:</strong> MemcacheTimeouts <em>connect read write</em><br>
119 <strong>Default:</strong> None<br>
120 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code><br>
121 <strong>Module:</strong> mod_memcache<br>
122 <strong>Compatibility:</strong> 1.3.4rc2 and later
123
124 <p>
125 <em>Experimental feature</em>
126
127 <p>
128 <hr>
129 <h2><a name="Installation">Installation</a></h2>
130 The <code>mod_memcache</code> module is distributed with ProFTPD. To enable
131 support and use of the memcache protocol in your <code>proftpd</code> daemon,
132 use the <code>--enable-memcache</code> configure option:
133 <pre>
134 $ ./configure --enable-memcache ...
135 $ make
136 $ make install
137 </pre>
138 This option causes the <code>mod_memcache</code> module to be compiled into
139 <code>proftpd</code>.
140
141 <p>
142 You may also need to tell <code>configure</code> how to find the
143 <code>libmemcached</code> header and library files:
144 <pre>
145 $ ./configure --enable-memcache \
146 --with-includes=<i>/path/to/libmemcached/include</i> \
147 --with-libraries=<i>/path/to/libmemcached/lib</i>
148 </pre>
149
150 <p>
151 <hr>
152 <font size=2><b><i>
153 &copy; Copyright 2011-2013 The ProFTPD Project<br>
154 All Rights Reserved<br>
155 </i></b></font>
156 <hr>
157
158 </body>
159 </html>