AcediaDocumentation

cache.replace

Replaces one Instance's cache mapping with another reference.

Changes future cache lookups; it does not rewrite existing script variables.

cache.replace(target: Instance, replacement: Instance): ()

Parameters

ParameterTypeDescription
targetInstanceInstance whose cache key is modified.
replacementInstanceReference to store under that key.

On this page