> ## 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 запись non-nil в Instance cache.

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

  ## Аргументы

  <ParamField path={"instance"} type={"Instance"} required>
    Instance, для которой нужно проверить запись Instance cache.
  </ParamField>

  ## Возвраты

  <ResponseField name={"cached"} type={"boolean"}>
    True, если cache содержит запись non-nil для этой Instance.
  </ResponseField>

  ## Пример

  Проверьте, есть ли у Instance текущая запись в Instance cache Real.

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

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

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