ModelCacheEntry
One entry of the model cache, as ModelCacheControls.entries lists it.
Defined in: engine/src/worker/cache.ts:139
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bytes | number | Approximate size: the compressed model plus its header. | engine/src/worker/cache.ts:147 |
created | number | When it was stored, Date.now() milliseconds. | engine/src/worker/cache.ts:149 |
generator | string | The generator id (EntityGenerator.id). | engine/src/worker/cache.ts:145 |
key | string | The stored key: salt|generator@version|seed|params|context. | engine/src/worker/cache.ts:141 |
lastUsed | number | When it was last stored or served, Date.now() milliseconds. | engine/src/worker/cache.ts:151 |
salt | string | The salt it was stored under: the URL of the worker script that made it. | engine/src/worker/cache.ts:143 |
ModelCacheControls
Developer controls for the model cache that serveGenerators({ cache }) fills, from openModelCacheControls. They run on the main thread (or anywhere with IndexedDB) and read only the small per-entry records, never the models. Nothing here runs by itself: the app decides when to inspect, clear or...
ModelCacheFilter
Which entries a control applies to; every field given must match. An empty filter matches everything.