Object cacheOverview
cache.replace
Represents replacement of a cached reference.
Details#
Assigns a replacement Instance wrapper to the cache entry keyed by the first Instance. This changes future cached lookup behavior, not either object's properties. Returns no values.
Examples#
Example
local part = Instance.new("Part")
local ref = cloneref(part)
cache.replace(part, ref)
print(compareinstances(part, ref)) -- true
part:Destroy()