getinstancecache
Gets all cached instance references.
Syntax
getinstancecache() -> tableReturns
| Type | Description |
|---|---|
table | Dictionary of cached instances |
Description
getinstancecache returns a table containing all currently cached instance references.
Example
local cache = getinstancecache()
print("Cached instances:", #cache)
for address, instance in pairs(cache) do
print(address, instance:GetFullName())
endRelated Functions
cache.invalidate- Remove from cachecache.replace- Replace cached instancecache.iscached- Check if cached