LocalStorageJabbitStorage

class LocalStorageJabbitStorage(key: String = "tech.ryadom.jabbit.jobs") : JabbitStorage(source)

JabbitStorage backed by localStorage.

Simpler and synchronous, but capped at a few megabytes and not reachable from a service worker: jobs stored here only run while a page of the app is open.

Constructors

Link copied to clipboard
constructor(key: String = "tech.ryadom.jabbit.jobs")

Functions

Link copied to clipboard
open suspend override fun read(): String?

Returns the previously stored document, or null when nothing has been stored yet.

Link copied to clipboard
open suspend override fun write(value: String)

Stores value, replacing whatever was stored before.