# Editor.BakeCacheWriter.Set

```csharp
void Set(string key, byte[] bytes)
```

Add or replace the bytes under a key. Only the latest value is published.

### Parameters

- `key` (`string`)
- `bytes` (`byte[]`)

Declared in [Editor.BakeCacheWriter](/api/Editor.BakeCacheWriter).
Assembly: `Sandbox.Tools`.
