]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Memcache/README
Merge remote-tracking branch 'upstream/master' into nightly
[quix0rs-gnu-social.git] / plugins / Memcache / README
1 The Memcache plugin implements cache interface for memcache.
2
3 See: http://memcached.org/
4
5 Installation
6 ============
7 add "addPlugin('Memcache');"
8 to the bottom of your config.php
9
10 Settings
11 ========
12 servers: Array of memcache servers addresses
13 defaultExpiry: How long before cache expires (in seconds)
14 compressThreshold: Items over this size threshold are eligible for compression (in bytes)
15 compressMinSaving: If the compression would save more than this ratio, items are eligible for compression
16
17 Note: To be compressed, an item must be both over the size threshold AND save
18 more than the minimum ratio.
19
20 Example
21 =======
22 addPlugin('Memcache', array(
23     'servers' => array('127.0.0.1;11211'),
24     'compressThreshold' => 20480,
25     'compressMinSaving' => 0.2,
26     'defaultExpiry' => 86400 // 24h
27 ));
28