Yuari
Documentation
Docs/Cache/cache.iscached

cache.iscached

Checks whether an instance is cached.

Syntax

cache.iscached(instance: Instance) -> boolean

Parameters

ParameterTypeDescription
instanceInstanceThe Instance to read from or modify.

Returns

TypeDescription
booleanThe boolean result of the check.

Description

cache.iscached is part of the Cache library. The module keeps a stable instance cache so userdata survives Roblox object churn. Cache calls inspect or change that mapping without modifying the game object itself.

The call is a predicate: it inspects the current state and returns a boolean without modifying anything.

Example

local part = Instance.new("Part")
print(cache.iscached(part))

Notes

  • Cache changes affect future lookups; existing userdata references remain valid.