Skip to content
Saiko

cache.iscached

Returns true while the reference is in the instance cache, and false once cache.invalidate has removed it.

Signature

luau
cache.iscached(instance: Instance): boolean

Parameters

instanceInstance

The instance to look up.

Returns

boolean

Note

Example

luau
local part = Instance.new("Part")
print(cache.iscached(part)) --> true

cache.invalidate(part)
print(cache.iscached(part)) --> false