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

> Zwraca, czy podana Instance ma wpis non-nil w Instance cache.

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

  ## Argumenty

  <ParamField path={"instance"} type={"Instance"} required>
    Instance, ktorej wpis Instance cache ma zostac sprawdzony.
  </ParamField>

  ## Zwroty

  <ResponseField name={"cached"} type={"boolean"}>
    True, gdy cache zawiera wpis non-nil dla tej Instance.
  </ResponseField>

  ## Przykład

  Sprawdz, czy Instance ma obecnie wpis w 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>
