cache.iscached
Checks an instance's native wrapper cache entry.
Syntax
Signature
cache.iscached(Instance: Instance) -> booleanAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Instance | Instance | Instance reference to inspect. |
Returns
| Type | Description |
|---|---|
boolean | Whether one of the instance's native cache keys has a non-nil value. |
Notes
Raises an error if the native cache is unavailable.
Example
Luau
local Result = cache.iscached(game:GetService("Players"))
print(Result)