cache.invalidate when you want to redirect rather than drop.
Parameters
Instance
required
The instance being replaced.
Instance
required
The instance to put in its place.
Example
Errors
Related
invalidate: drop instead of replace.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Replace a cached instance with another.
cache.replace(instance: Instance, replacement: Instance) -> ()
cache.invalidate when you want to redirect rather than drop.
cache.replace(realPart, decoyPart)
| Message | Condition |
|---|---|
argument 1 must be the Instance being replaced | Argument 1 was not an Instance. |
argument 2 must be the Instance to replace it with | Argument 2 was not an Instance. |
the Instance being replaced holds a null pointer | The instance pointer was null. |
the instance cache is missing from the registry, nothing to replace in | The cache table was unavailable. |
invalidate: drop instead of replace.