Skip to main content

LocalStorageTransport

Strategy-based storage transport implementation. Supports LocalStorage, SessionStorage, CacheAPI, and IndexedDB with automatic worker delegation support.

TypeScriptexample.ts
import { LocalStorageTransport } from '@angular-helpers/storage'

# Methods

MethodSignatureReturnsDescription
readread<T>(key: string, options?: StorageSignalOptions): Promise<T | undefined>Promise<T | undefined>Reads and deserializes a value from the configured storage mechanism.
writewrite<T>(key: string, data: T, options?: StorageSignalOptions): Promise<void>Promise<void>Serializes, optionally encrypts, and writes a value to storage.
LCP N/A
CLS N/A
INP N/A