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

> Returns whether the given Instance has a non-nil entry in the Instance cache.

Returns whether the given Instance has a non-nil entry in the Instance cache.

## Syntax

```lua theme={null}
cache.iscached(instance: Instance): boolean
```

## Arguments

| Name       | Type       | Required | Description                                            |
| ---------- | ---------- | -------- | ------------------------------------------------------ |
| `instance` | `Instance` | Yes      | Instance whose Instance cache entry should be checked. |

## Returns

| Name     | Type      | Description                                                    |
| -------- | --------- | -------------------------------------------------------------- |
| `cached` | `boolean` | True when the cache contains a non-nil entry for the Instance. |

## Example

Check whether an Instance currently has an entry in Real's Instance cache.

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

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

cache.invalidate(Players)
print(cache.iscached(Players))
```
