Cache

cache.iscached

Returns whether an instance currently has a cached registry reference.

Syntax

cache.iscached(instance: Instance): boolean

Arguments

NameTypeDescription
instanceInstanceRoblox instance to inspect or update.

Returns

NameTypeDescription
cachedbooleanTrue 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)