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:'.
Attempt
localStorage.setItem. On quota exceeded, evict half of the entries sharingevictionPrefix(oldest-timestamp first when payloads are JSON{ timestamp }objects) and retry once. Other errors are logged and swallowed.