Skip to content
IonizeDocsionize.cc ↗

API Reference

Cache Library

Reading and modifying the instance cache, plus reference comparison.

5 members

cache.invalidate(object: Instance): ()

Removes the instance from the cache so the next reference is rebuilt.

cache.iscached(object: Instance): boolean

Returns whether the instance is currently cached.

cache.replace(object: Instance, replacement: Instance): ()

Replaces the cached entry for an instance.

cloneref<T>(object: T): T

Returns a distinct reference to the same underlying instance.

compareinstances(a: Instance, b: Instance): boolean

Returns whether two references point at the same instance.