> ## 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 المحددة لديها إدخال غير 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 على إدخال غير 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>
