Manual:$wgMemCachedServers

Array of memcached servers (for use with the 1>Special:MyLanguage/memcached|memcached memory-based object store)

Details
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:

You can have multiple wikis point to the same Memcached server, as long as each have different wiki-ids (). Certain cache keys are intentionally shared in such a scenario, such as rate limiting stuff.

More information in .