Interface definition for pluggable storage backends. Enables the Strategy pattern used by LocalStorageTransport.
import { StorageTransport } from '@angular-helpers/storage'
read
read<T>(key: string, options?: StorageSignalOptions): Promise<T | undefined>
Promise<T | undefined>
write
write<T>(key: string, data: T, options?: StorageSignalOptions): Promise<void>
Promise<void>
delete
delete(key: string, options?: StorageSignalOptions): Promise<void>