Saltar al contenido principal

Function: createMemoryStorage()

createMemoryStorage(): Storage

Defined in: src/infrastructure/storage/storage.service.ts:72

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

Storage

An object conforming to the Web Storage API.

Example

const mem = createMemoryStorage();
mem.setItem("key", JSON.stringify({ a: 1 }));