CreateMemoryStorage
katanakit-js / createMemoryStorage
Function: createMemoryStorage()
Section titled “Function: createMemoryStorage()”function createMemoryStorage(): Storage;Defined in: infrastructure/storage/storage.service.ts:75
Creates a new in-memory Storage instance used as an SSR / private-mode
fallback. Each call owns its own Map — never share one across requests.
Returns
Section titled “Returns”Storage
An object conforming to the Web Storage API.
Example
Section titled “Example”const mem = createMemoryStorage();mem.setItem("key", JSON.stringify({ a: 1 }));