v5:userguide:memcached
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:userguide:memcached [2021/01/25 03:49] – [Adding Weighted Server Groups] mnewnham | v5:userguide:memcached [2022/03/29 18:29] (current) – [Usage] compress also works with memcached now dregad | ||
---|---|---|---|
Line 38: | Line 38: | ||
/* | /* | ||
* Use ' | * Use ' | ||
- | * Note; Compression is only supported using the memcache library. This | ||
- | | ||
*/ | */ | ||
$db-> | $db-> | ||
Line 56: | Line 54: | ||
</ | </ | ||
===== Adding Weighted Server Groups ===== | ===== Adding Weighted Server Groups ===== | ||
- | From ADOdb version 5.22, the **memcached** library supports the use of **// | + | |
+ | From ADOdb version 5.22, the **memcached** library supports the use of **// | ||
+ | |||
+ | If the feature is used, the total weighting of the server group must equal 100%. To achieve this, the configuration of the servers must be defined in a different way to the default. Each host is defined as an array: | ||
<code php> | <code php> | ||
Line 70: | Line 71: | ||
$hosts = array( | $hosts = array( | ||
- | array(' | + | array(' |
- | array(' | + | array(' |
); | ); | ||
v5/userguide/memcached.1611542945.txt.gz · Last modified: 2021/01/25 03:49 by mnewnham