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

# Interface: AtomicRecordStore

> Reference for the AtomicRecordStore interface in bijection/requests.

[requests](https://docs.bijection.com/api/modules/requests).AtomicRecordStore

## Implemented by

* [`MemoryRecords`](https://docs.bijection.com/api/classes/requests.MemoryRecords)

## Methods

### batch

▸ **batch**\<`T`>(`keys`, `use`): `T` | `Promise`\<`T`>

#### Type parameters

| Name |
| :- |
| `T` |

#### Parameters

| Name | Type |
| :- | :- |
| `keys` | readonly `string`\[] |
| `use` | (`values`: `ReadonlyMap`\<`string`, `Uint8Array` \| `null`>) => [`BatchChange`](https://docs.bijection.com/api/modules/requests#batchchange)\<`T`> |

#### Returns

`T` | `Promise`\<`T`>

***

### transaction

▸ **transaction**\<`T`>(`key`, `use`): `T` | `Promise`\<`T`>

#### Type parameters

| Name |
| :- |
| `T` |

#### Parameters

| Name | Type |
| :- | :- |
| `key` | `string` |
| `use` | (`bytes`: `Uint8Array` \| `null`) => [`RecordChange`](https://docs.bijection.com/api/modules/requests#recordchange)\<`T`> |

#### Returns

`T` | `Promise`\<`T`>

***

### withCurrent

▸ **withCurrent**\<`T`>(`key`, `use`): `T` | `Promise`\<`T`>

#### Type parameters

| Name |
| :- |
| `T` |

#### Parameters

| Name | Type |
| :- | :- |
| `key` | `string` |
| `use` | (`bytes`: `Uint8Array` \| `null`) => `T` |

#### Returns

`T` | `Promise`\<`T`>

***

### scan

▸ **scan**(`after`, `limit`, `prefix?`): [`StoredCustodyRecord`](https://docs.bijection.com/api/modules/requests#storedcustodyrecord)\[] | `Promise`\<[`StoredCustodyRecord`](https://docs.bijection.com/api/modules/requests#storedcustodyrecord)\[]>

#### Parameters

| Name | Type |
| :- | :- |
| `after` | `string` |
| `limit` | `number` |
| `prefix?` | `string` |

#### Returns

[`StoredCustodyRecord`](https://docs.bijection.com/api/modules/requests#storedcustodyrecord)\[] | `Promise`\<[`StoredCustodyRecord`](https://docs.bijection.com/api/modules/requests#storedcustodyrecord)\[]>


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