cache.iscached

Checks an instance's native wrapper cache entry.

Syntax

Signature
cache.iscached(Instance: Instance) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
InstanceInstanceInstance reference to inspect.

Returns

TypeDescription
booleanWhether 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)