Yuari
Documentation
Docs/Cache

Cache

Instance cache inspection, replacement and comparison.

Invalidates cached data for an instance.

cache.invalidate(workspace)
print(cache.iscached(workspace))

Checks whether an instance is cached.

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

Replaces an instance in the cache.

local old = Instance.new("Part")
local newPart = Instance.new("Part")
cache.replace(old, newPart)

Compares two instances by identity.

print(compareinstances(workspace, game:GetService("Workspace")))

Re-inserts an instance into the cache so future lookups reuse the same userdata.

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