Manual:$wgMemCachedServers

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский
Memcached settings: $wgMemCachedServers
Memcached servers
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values:
Default value: [ '127.0.0.1:11000' ]
Other settings: Alphabetical | By function

Array of memcached servers (for use with the memcached memory-based object store)

Details[edit]

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:11000", # one gig on this box
  [ "192.168.0.1:11000", 2 ] # two gigs on the other box
];

More information in docs/memcached.txt.