Cache
Inspect, replace, and invalidate cached instance references.
Functions
cache.invalidateRemove an Instance’s canonical wrapper from the ObjectBridge cache. The Instance itself remains alive; a later lookup may create a different wrapper for that same engine object.
cache.iscachedCheck whether this exact Instance wrapper is the one stored as canonical in the cache. It is useful after cloneref, which deliberately creates another wrapper for the same engine object.
cache.replaceChoose which Instance wrapper becomes canonical for an engine object. Use it when code must make a cloned wrapper the one returned by later ObjectBridge lookups.
getinstancecacheRead the ObjectBridge cache table that maps native Instance identities to their canonical Luau wrappers. This is mainly useful for diagnosing wrapper caching.