Manual:$wgMemCachedServers

This page is a translated version of the page Manual:$wgMemCachedServers and the translation is 54% complete.
Memcached の設定: $wgMemCachedServers
memcached サーバー
導入されたバージョン:1.1.0 未満
除去されたバージョン:使用中
許容される値:未指定
既定値:[ '127.0.0.1:11211', ] (1.22+)
array( '127.0.0.1:11000' ) (1.1-1.21)

memcached ネットワーク サーバーの配列、または PHP の形式を用いた unix ソケットのパス名 (例) unix:///var/run/memcached/socket (メモリ ベースのオブジェクト ストア memcached で使用)。

Note that beginning in MediaWiki 1.35.6, 1.36.4 and 1.37.2, when specifying a unix socket pathname, a trailing :port number must not be specified. It was ignored by the prior versions, but is now treated as part of the pathname.

詳細

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", # このボックスに 1GB
  [ "192.168.0.1:11211", 2 ] # 他のボックスに 2GB
];

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.

docs/memcached.md に詳細情報があります。