[]previous and next page

markProcessLocalStore

Records that a store keeps its entries in the memory of this process only.

Records that a store keeps its entries in the memory of this process only. When the server runs several workers, the primary prints one warning that names the label and points to the shared-storage section of the deploy guide. Call it where the store is created; calling it again with the same label is harmless.

Import#

ts
import { markProcessLocalStore } from "@shadow-js/dusk/node";

Signature#

ts
function markProcessLocalStore(label: string): void

Parameters#

Name Description
label A short name for the store, for example "isr page cache".

Examples#

ts
import { markProcessLocalStore } from "@shadow-js/dusk/node";
markProcessLocalStore("my session map");