Summary

Public constructors

<T : Any?> WebStorage(
    serializer: OkioSerializer<T>,
    name: String,
    storageType: WebStorageType,
    coordinatorProducer: (String, WebStorageType) -> InterProcessCoordinator
)
JS

Public functions

open StorageConnection<T>

Creates a storage connection which allows reading and writing to the underlying storage.

JS

Public constructors

WebStorage

<T : Any?> WebStorage(
    serializer: OkioSerializer<T>,
    name: String,
    storageType: WebStorageType,
    coordinatorProducer: (String, WebStorageType) -> InterProcessCoordinator = { name, storageType -> createWebProcessCoordinator(name, storageType) }
)

Public functions

createConnection

open fun createConnection(): StorageConnection<T>

Creates a storage connection which allows reading and writing to the underlying storage.

Should be closed after usage.

Throws
IOException

Unrecoverable IO exception when trying to access the underlying storage.