Saltar al contenido principal

Function: SessionStorageStrategy()

SessionStorageStrategy(storage?): StorageStrategy

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

Creates a strategy backed by window.sessionStorage.

Parameters

storage?

Storage

Optional storage instance (defaults to window.sessionStorage).

Returns

StorageStrategy

A StorageStrategy.

Example

const strategy = SessionStorageStrategy();
strategy.useSetItem("session", data);