SceneCacheEntry
One entry of the scene cache, as SceneCacheControls.entries lists it.
Defined in: engine/src/worker/scene-cache.ts:35
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
bytes | number | Approximate size: the stored bytes plus the header. | engine/src/worker/scene-cache.ts:43 |
created | number | When it was stored, Date.now() milliseconds. | engine/src/worker/scene-cache.ts:45 |
key | string | The stored key: salt|encoded|v<version>|<digest> or salt|placement|v<version>|r<layout>|<digest>. | engine/src/worker/scene-cache.ts:37 |
kind | SceneCacheKind | An encoded model or a placement bake. | engine/src/worker/scene-cache.ts:41 |
lastUsed | number | When it was last stored or served, Date.now() milliseconds. | engine/src/worker/scene-cache.ts:47 |
salt | string | The salt it was stored under: the URL of the worker script that made it. | engine/src/worker/scene-cache.ts:39 |
SceneCacheControls
Developer controls for the cache that serveScene({ cache }) fills, from openSceneCacheControls: the model cache's controls (ModelCacheControls), by kind rather than by generator. They read only the small per-entry records. Nothing here runs by itself: the app decides when to inspect, clear or trim.
SceneCacheFilter
Which entries a control applies to; every field given must match. An empty filter matches everything.