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

> Retorna se a Instance informada tem uma entrada non-nil no Instance cache.

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

  ## Argumentos

  <ParamField path={"instance"} type={"Instance"} required>
    Instance cuja entrada no Instance cache deve ser verificada.
  </ParamField>

  ## Retornos

  <ResponseField name={"cached"} type={"boolean"}>
    True quando o cache contem uma entrada non-nil para a Instance.
  </ResponseField>

  ## Exemplo

  Verifique se uma Instance tem atualmente uma entrada no Instance cache do Real.

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

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

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