# Class InMemoryCheckpointStore

In-memory checkpoint store with bounded storage. Checkpoints are evicted on a per-execution basis (oldest first) when limits are exceeded.

#### Implements

- ICheckpointStore

- Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:37

##### Index

### Constructors

constructor

### Methods

save
load
latest
list
delete
deleteExecution
size
clear

## Constructors

### constructor

- new InMemoryCheckpointStore(): InMemoryCheckpointStore

  #### Returns InMemoryCheckpointStore

## Methods

### save

- save(checkpoint: Checkpoint): void

  Saves a checkpoint. Overwrites if ID already exists.

  #### Parameters

  - checkpoint: Checkpoint

  #### Returns void

  Implementation of ICheckpointStore.save

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:41

### load

- load(id: string): Checkpoint | undefined

  Loads a checkpoint by ID. Returns undefined if not found.

  #### Parameters

  - id: string

  #### Returns Checkpoint | undefined

  Implementation of ICheckpointStore.load

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:54

### latest

- latest(executionId: string): Checkpoint | undefined

  Loads the latest checkpoint for a given execution ID.

  #### Parameters

  - executionId: string

  #### Returns Checkpoint | undefined

  Implementation of ICheckpointStore.latest

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:58

### list

- list(executionId: string): readonly CheckpointSummary[]

  Lists all checkpoint summaries for a given execution ID.

  #### Parameters

  - executionId: string

  #### Returns readonly CheckpointSummary[]

  Implementation of ICheckpointStore.list

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:67

### delete

- delete(id: string): boolean

  Deletes a checkpoint by ID. Returns true if found and deleted.

  #### Parameters

  - id: string

  #### Returns boolean

  Implementation of ICheckpointStore.delete

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:75

### deleteExecution

- deleteExecution(executionId: string): number

  Deletes all checkpoints for a given execution ID.

  #### Parameters

  - executionId: string

  #### Returns number

  Implementation of ICheckpointStore.deleteExecution

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:88

### size

- size(): number

  Returns total number of checkpoints across all executions.

  #### Returns number

  Implementation of ICheckpointStore.size

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:97

### clear

- clear(): void

  Clears all checkpoints.

  #### Returns void

  Implementation of ICheckpointStore.clear

  - Defined in packages/nexus-agents/src/orchestration/graph/checkpoint-store.ts:101