Appearance
@loontail/minecraft-kit v0.8.14 / PersistentMetadataCache
Type alias: PersistentMetadataCache
ts
type PersistentMetadataCache: MetadataCache & {
flush: Promise<void>;
};Disk-backed MetadataCache plus a PersistentMetadataCache.flush hook for awaiting in-flight writes (e.g. on app quit, or in tests).
Example
ts
const cache = await createPersistentMetadataCache({ directory });
cache.set("k", { hello: "world" });
await cache.flush();Type declaration
| Member | Type | Description |
|---|---|---|
flush | Promise<void> | Resolve once every queued disk write/delete has settled. |