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

# api.getCache()

> Public low-code contract, signatures and examples for api.getCache.

## `api.getCache()`

Reads execution-scoped in-memory cache. Returns a detached mutable copy by
default, or the same value when written with `&#123; reference: true &#125;`.
Missing keys return `undefined`. Entries never cross execution boundaries.

### Signature

```ts theme={null}
static getCache(key: string): any;
```

### Example

```ts theme={null}
const token = api.getCache('token');
```

See [all api methods](https://docs.revoengine.com/low-code/reference/api.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.