---
title: "Cache"
description: "Reference caching and instance comparison."
icon: "database"
---

## Available functions

<div className="byte-function-directory">
<CardGroup cols={2}>
  <Card title="cache.invalidate" href="/reference/cache/cache-invalidate">
    Removes the instance's cached wrapper entry.
  </Card>
  <Card title="cache.iscached" href="/reference/cache/cache-iscached">
    Checks whether the underlying instance pointer has a cache entry.
  </Card>
  <Card title="cache.replace" href="/reference/cache/cache-replace">
    Maps the old underlying instance key to the new wrapper in the cache.
  </Card>
  <Card title="cache.validate" href="/reference/cache/cache-validate">
    Adds the supplied wrapper to the cache if no entry exists.
  </Card>
  <Card title="cloneref" href="/reference/cache/cloneref">
    Creates another wrapper referring to the same underlying instance.
  </Card>
  <Card title="compareinstances" href="/reference/cache/compareinstances">
    Compares native instance pointers.
  </Card>
</CardGroup>
</div>
