3.3. キャッシュエイリアス
異なる名前を使用してキャッシュにアクセスするには、キャッシュにエイリアスを追加します。
ヒント
キャッシュ設定の aliases
属性は、ランタイム時に更新可能です。異なるキャッシュにエイリアスを再割り当てして、キャッシュの内容をすばやく切り替えます。
XML
<distributed-cache name="acache" aliases="0 anothername"/>
<distributed-cache name="acache" aliases="0 anothername"/>
JSON
{ "distributed-cache": { "aliases": ["0", "anothername"] } }
{
"distributed-cache": {
"aliases": ["0", "anothername"]
}
}
YAML
distributedCache: aliases: - "0" - "anothername"
distributedCache:
aliases:
- "0"
- "anothername"