Manuale:$wgMemCachedServers
Jump to navigation
Jump to search
Memcached settings: $wgMemCachedServers | |
---|---|
Memcached servers |
|
Introdotto nella versione: | pre 1.1.0 |
Rimosso nella versione: | still in use |
Valori concessi: | Non specificato |
Valore predefinito: | [ '127.0.0.1:11211' ] |
Impostazioni: Alfabetiche | Per funzione |
Array of memcached servers (for use with the memcached memory-based object store)
Dettagli
To use multiple servers (physically separate boxes or multiple caches on one machine on a large-memory x86 box), just add more items to the array. To increase the weight of a server (say, because it has twice the memory of the others and you want to spread usage evenly), make its entry a subarray:
$wgMemCachedServers = [
"127.0.0.1:11211", # one gig on this box
[ "192.168.0.1:11211", 2 ] # two gigs on the other box
];
You can have multiple wikis point to the same Memcached server, as long as each have different wiki-ids ($wgDBname ). Certain cache keys are intentionally shared in such a scenario, such as rate limiting stuff.
More information in docs/memcached.txt.