> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# cache.invalidate

> 指定された Instance のキャッシュ済み Instance cache エントリを削除します。

<div className="real-function-page">
  ```lua theme={null}
  cache.invalidate(instance: Instance)
  ```

  ## 引数

  <ParamField path={"instance"} type={"Instance"} required>
    キャッシュ済み registry エントリを削除する Instance。
  </ParamField>

  ## 例

  Real の cache から Instance を削除し、cache エントリがまだ存在するか確認します。

  ```lua theme={null}
  local Players = game:GetService("Players")

  cache.invalidate(Players)

  print(cache.iscached(Players))
  ```
</div>
