Potassium API
  • Environment
    • Cache
    • Closures
    • Console
    • Crypt
    • Debug
    • Drawing
    • File System
    • Input
    • Instance
    • Metatable
    • Miscellaneous
    • Scripts
    • Web Sockets
    • Actor
Powered by GitBook
On this page
  • cache.invalidate
  • cache.iscached
  • cache.replace
  • cloneref
  • compareinstances
  1. Environment

Cache

cache.invalidate

<nil> cache.invalidate(<Instance> object)

Deletes object from the Instance cache. Effectively invalidates object as a reference to the underlying Instance.


cache.iscached

<boolean> cache.iscached(<Instance> object)

Checks whether object exists in the Instance cache.


cache.replace

<nil> cache.replace(<Instance> object, <Instance> newobject)

Replaces object in the Instance cache with newObject.


cloneref

<Instance> cloneref(<Instance> object)

Returns a copy of the Instance reference to object. This is useful for managing an Instance without directly referencing it.


compareinstances

<boolean> compareinstances(<Instance> a, <Instance> b)

Returns whether objects a and b both reference the same Instance.


NextClosures

Last updated 2 months ago