@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Default storage strategy that delegates to localStorage.

    All operations are wrapped in try/catch so they degrade gracefully in environments where localStorage is unavailable (SSR, private browsing quota exceeded, etc.).

    Implements

    Index

    Constructors

    Methods

    • Retrieve a value by key. Returns null when the key does not exist.

      Parameters

      • key: string

      Returns string | null

    • Remove the value for the given key.

      Parameters

      • key: string

      Returns void

    • Store a value under the given key.

      Parameters

      • key: string
      • value: string

      Returns void