---
schema_version: "1"
id: ac29a3652516a0a9831857f8fc9b8142908cc0d9396fac7b65267052abc5ca09
title: Invalidate Key (<ee:invalidate-key/>)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/anypoint-code-builder/acb-component-invalidate-key.md
canonical_url: https://docs.mulesoft.com/jp/anypoint-code-builder/acb-component-invalidate-key
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f8510de41aee2c9529bda4be9ca38355e42832dadacf841eb877adeaa0733f7e
description: MuleSoft Documentation Site
latest: true
---
# Invalidate Key (<ee:invalidate-key/>)

参照されたキャッシュ戦略内の 1 つのキャッシュキーを無化します。

## [](#component-xml)コンポーネント XML

このコンポーネントは、次の XML 構造をサポートします。

```xml
<ee:invalidate-key
  cachingStrategy-ref=""
  doc:name="Invalidate key"
  doc:id="ezsaex" />
```

Invalidate Key (​`<ee:invalidate-key/>`​) 属性は UI および XML で設定できます。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 60%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">属性名</th>
<th class="tableblock halign-left valign-top">属性 XML</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Invalidate key (キーを無効化)</strong>​ (デフォルト)</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>doc:name</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>キャンバスに表示されるコンポーネントの編集可能な名前。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">なし</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>doc:id</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>コンポーネントの自動生成された識別子。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Cachingstrategy ref (キャッシュ戦略参照)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>cachingStrategy-ref</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>無効化するキャッシュキーのキャッシュ戦略への参照。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Key generation expression (キー生成式)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>keyGenerationExpression</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>省略可能。無効化するキーを生成する DataWeave 式。キーを生成したキャッシュ戦略で設定された式と同じ式を使用します。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Keygenerator ref (キージェネレーター参照)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>keyGenerator-ref</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>なし</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#例)例

次の例では、キャッシュキーを無効化します。

```xml
<!-- Caching strategy configuration -->
<ee:object-store-caching-strategy name="myCachingStrategy" keyGenerationExpression="#[payload.key]" />

<flow name="cacheFlow">
  <ee:cache cachingStrategy-ref="myCachingStrategy">
      <!-- Processing logic inside the Cache Scope -->
  </ee:cache>
</flow>

<flow name="invalidateItemFlow">
  <!-- Invalidate Key component configuration -->
  <ee:invalidate-key cachingStrategy-ref="myCachingStrategy" keyGenerationExpression="#[payload.key]" />
</flow>
```

## [](#see-also)関連情報

- [Cache スコープ](https://docs.mulesoft.com/jp/anypoint-code-builder/acb-component-cache)
- [Invalidate Cache](https://docs.mulesoft.com/jp/anypoint-code-builder/acb-component-invalidate-cache)