> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Cache

> 引用缓存和实例比较。

<div className="real-category-page">
  引用缓存和实例比较。

  ## 可用函数

  <CardGroup cols={2}>
    <Card title="cache.invalidate" href="./cache-invalidate">
      移除给定 Instance 的已缓存 Instance cache 条目。
    </Card>

    <Card title="cache.iscached" href="./cache-iscached">
      返回给定 Instance 在 Instance cache 中是否有 non-nil 条目。
    </Card>

    <Card title="cache.replace" href="./cache-replace">
      Sets the cached Instance entry for one Instance to another Instance.
    </Card>

    <Card title="cloneref" href="./cloneref">
      为同一个底层 Instance 指针 push 一个新的 Instance 引用并返回它。
    </Card>

    <Card title="compareinstances" href="./compareinstances">
      比较两个 Instance object 值中存储的内部 Instance 指针值。
    </Card>
  </CardGroup>
</div>
