Skip to main content

StorageTransport

Interface definition for pluggable storage backends. Enables the Strategy pattern used by LocalStorageTransport.

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

# Methods

MethodSignatureReturnsDescription
readread<T>(key: string, options?: StorageSignalOptions): Promise<T | undefined>Promise<T | undefined>Reads a value from the storage medium.
writewrite<T>(key: string, data: T, options?: StorageSignalOptions): Promise<void>Promise<void>Writes a value to the storage medium.
deletedelete(key: string, options?: StorageSignalOptions): Promise<void>Promise<void>Removes a value from the storage medium.
LCP N/A
CLS N/A
INP N/A