API Reference
Cache Library
Reading and modifying the instance cache, plus reference comparison.
cache.invalidate(object: Instance): ()Removes the instance from the cache so the next reference is rebuilt.
cache.iscached(object: Instance): booleanReturns whether the instance is currently cached.
cache.replace(object: Instance, replacement: Instance): ()Replaces the cached entry for an instance.
cloneref<T>(object: T): TReturns a distinct reference to the same underlying instance.
compareinstances(a: Instance, b: Instance): booleanReturns whether two references point at the same instance.