Object cacheOverview
cache.iscached
Checks for a cached object reference.
Details#
Reports whether an Instance has an entry in the object-wrapper cache. A false result does not mean the Instance was destroyed. Invalid Instance arguments raise an error.
Examples#
Example
local part = Instance.new("Part")
print(cache.iscached(part))
cache.invalidate(part)
print(cache.iscached(part)) -- false
part:Destroy()