> ## 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.iscached

> 指定された Instance が Instance cache に non-nil エントリを持つかどうかを返します。

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

  ## 引数

  <ParamField path={"instance"} type={"Instance"} required>
    Instance cache エントリを確認する Instance。
  </ParamField>

  ## 戻り値

  <ResponseField name={"cached"} type={"boolean"}>
    cache にその Instance の non-nil エントリがある場合は True。
  </ResponseField>

  ## 例

  Instance が現在 Real の Instance cache にエントリを持つか確認します。

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

  local cached = cache.iscached(Players)
  print(cached)

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