v5:userguide:memcached
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v5:userguide:memcached [2021/01/25 02:30] – mnewnham | v5:userguide:memcached [2021/01/25 03:49] – [Adding Weighted Server Groups] mnewnham | ||
---|---|---|---|
Line 62: | Line 62: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
</ | </ | ||
Line 82: | Line 82: | ||
/* | /* | ||
- | * Add the weighted servers | + | * Add the weighted servers |
*/ | */ | ||
$db-> | $db-> | ||
+ | </ | ||
+ | |||
+ | ===== Adding options to the memcached server ===== | ||
+ | From ADOdb version 5.22, [[https:// | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | $hosts = array( | ||
+ | array(' | ||
+ | array(' | ||
+ | ); | ||
+ | |||
+ | $db = NewADOConnection($driver=' | ||
+ | |||
+ | /* | ||
+ | * Enable memcache | ||
+ | */ | ||
+ | $db-> | ||
+ | |||
+ | /* | ||
+ | * Add the weighted servers in $memCacheHosts | ||
+ | */ | ||
+ | $db-> | ||
+ | |||
+ | /* | ||
+ | * Set some options | ||
+ | */ | ||
+ | $db-> | ||
</ | </ | ||
v5/userguide/memcached.txt · Last modified: 2022/03/29 18:29 by dregad