<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`iterateCacheRefs`](iterateCacheRefs)
## iterateCacheRefs() function
> Warning: This API is now obsolete.
>
>
Iterate links and embeds. If callback returns true, the iteration process will be interrupted.
**Signature:**
```typescript
export function iterateCacheRefs(cache: CachedMetadata, cb: (ref: ReferenceCache) => boolean | void): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>cache</code> | [`CachedMetadata`](CachedMetadata) | |
| <code>cb</code> | <code>(ref: </code>[`ReferenceCache`](ReferenceCache)<code>) => boolean | void</code> | |
**Returns:**
`boolean`
true if callback ever returns true, false otherwise.