Tells you whether an Instance is still in Seliware’s internal instance cache.
Seliware keeps an internal cache of game Instances; an Instance you reach through the game tree is normally tracked there, so cache.iscached returns true for it. Once cache.invalidate removes an Instance from that cache, cache.iscached returns false for it.
Most commonly used to confirm a reference was actually detached after an invalidate call.
Parameters
Returns
true if instance is tracked in the instance cache, false if it is not.
Example
In a Roblox game, confirm that a RemoteEvent was actually detached before you rely on a cache.invalidate to dodge its anti-cheat:
Checking cache status is helpful before performing low-level memory operations.