Syntax
cache.iscached(instance: Instance): booleanArguments
| Name | Type | Description |
|---|---|---|
instance | Instance | Roblox instance to inspect or update. |
Returns
| Name | Type | Description |
|---|---|---|
cached | boolean | True when the instance currently has a cached reference. |
Description
Returns whether an instance currently has a cached registry reference.
Call it with 1 parameter(s): instance. The argument table explains which values are required and which ones only refine the behavior.
It returns cached (boolean). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = cache.iscached(game)
print(result)