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

> Tra ve Instance duoc cung cap co muc non-nil trong Instance cache hay khong.

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

  ## Đối số

  <ParamField path={"instance"} type={"Instance"} required>
    Instance co muc Instance cache can duoc kiem tra.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"cached"} type={"boolean"}>
    True khi cache chua mot muc non-nil cho Instance.
  </ResponseField>

  ## Ví dụ

  Kiem tra xem mot Instance hien co muc trong Instance cache cua Real hay khong.

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

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

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