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 [2025/06/01 13:21] (current) – Remove square brackets in tags 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(' |
| ); | ); | ||
| Line 144: | Line 145: | ||
| - | {{tag>[memcached cache]}} | + | {{tag> |
v5/userguide/memcached.1611542945.txt.gz · Last modified: by mnewnham
