Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.47
    Preparing search index...
    • Attempt localStorage.setItem. On quota exceeded, evict half of the entries sharing evictionPrefix (oldest-timestamp first when payloads are JSON { timestamp } objects) and retry once. Other errors are logged and swallowed.

      Parameters

      • key: string

        Full storage key to write.

      • payload: string

        Serialized payload to store.

      • evictionPrefix: string

        Prefix identifying related entries that may be evicted to make room. Typically the caller's namespace, e.g. 'committees-cache:'.

      Returns boolean

      true if the write succeeded, false otherwise.