WebStorage

class WebStorage(val dbName: String = "MultipazStorage", clock: Clock = Clock.System) : BaseStorage

Storage implementation based on IndexedDB for both Kotlin/JS and Kotlin/Wasm.

Constructors

Link copied to clipboard
constructor(dbName: String = "MultipazStorage", clock: Clock = Clock.System)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun getTable(spec: StorageTableSpec): StorageTable

Get the table with specific name and features.

Link copied to clipboard
open suspend override fun purgeExpired()

Reclaim the storage occupied by expired entries across all tables in this Storage object (even if these tables were never accessed using getTable in this session).