Skip to content
0

katanakit-js / MemoryStorageStrategy

Function: MemoryStorageStrategy() ​

ts
function MemoryStorageStrategy(): StorageStrategy;

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

Creates a strategy backed by an in-memory store (SSR / private-mode fallback).

Returns ​

StorageStrategy

A StorageStrategy using an in-memory Storage backend.

Example ​

ts
const strategy = MemoryStorageStrategy();
strategy.useSetItem("temp", "value");

Released under the MIT License.