JabbitStorage

Persistence used by the platforms where Jabbit owns the job queue itself, currently iOS and the browser.

Jobs are stored as a single JSON document. Implement this to move that document somewhere else — the keychain, a file, an app group shared with an extension, or a server-backed store.

Inheritors

IndexedDbJabbitStorage
LocalStorageJabbitStorage
UserDefaultsJabbitStorage
FileJabbitStorage

Functions

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

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

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

Stores value, replacing whatever was stored before.