SeqStore

interface SeqStore

Minimal key-value persistence used for sequence counters and session state.

The default implementation (FileSeqStore, via platformSeqStore) is a small file written atomically under the app's private storage on every platform. Provide your own implementation via AutographConfig.store to control storage.

Inheritors

Functions

Link copied to clipboard
open fun flush()

Blocks until all prior writes are durably persisted (survive a process crash).

Link copied to clipboard
abstract fun getLong(key: String): Long?
Link copied to clipboard
abstract fun getString(key: String): String?
Link copied to clipboard
abstract fun putLong(key: String, value: Long)
Link copied to clipboard
abstract fun putString(key: String, value: String)
Link copied to clipboard
abstract fun remove(key: String)