# Editor.BakeCacheWriter

Stages keyed files on disk and merges them into the shipped archive in one atomic replacement.

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Modifiers: sealed

## Methods

- [`Dispose`](/api/Editor.BakeCacheWriter/Dispose): Discard staging data and release the writer lock.
- [`Open`](/api/Editor.BakeCacheWriter/Open): Open the shipped cache for a manual bake in a developer editor.
- [`Save`](/api/Editor.BakeCacheWriter/Save): Copy untouched entries and staged values into a new pack. An interrupted bake leaves the old pack usable.
- [`Set`](/api/Editor.BakeCacheWriter/Set): Add or replace the bytes under a key. Only the latest value is published.
