toggle menu
KStore
1.0.0-SNAPSHOT
common
js
wasmJs
switch theme
search in API
kstore-storage
/
io.github.xxfast.kstore.storage
Package-level
declarations
Types
Functions
Properties
Types
Storage
Link copied to clipboard
common
js
wasmJs
expect
abstract
class
Storage
actual
typealias
Storage
=
org.w3c.dom.Storage
actual
typealias
Storage
=
org.w3c.dom.Storage
Storage
Codec
Link copied to clipboard
class
StorageCodec
<
T
:
@
Serializable
Any
>
(
key
:
String
,
format
:
StringFormat
,
serializer
:
KSerializer
<
T
>
,
storage
:
Storage
)
:
Codec
<
T
>
Properties
local
Storage
Link copied to clipboard
common
js
wasmJs
expect
val
localStorage
:
Storage
actual
val
localStorage
:
Storage
actual
val
localStorage
:
Storage
Functions
Storage
Codec
Link copied to clipboard
inline
fun
<
T
:
@
Serializable
Any
>
StorageCodec
(
key
:
String
,
format
:
StringFormat
=
DefaultJson
,
storage
:
Storage
=
localStorage
)
:
StorageCodec
<
T
>
store
Of
Link copied to clipboard
inline
fun
<
T
:
@
Serializable
Any
>
storeOf
(
key
:
String
,
default
:
T
?
=
null
,
enableCache
:
Boolean
=
true
,
format
:
StringFormat
=
DefaultJson
,
storage
:
Storage
=
localStorage
)
:
KStore
<
T
>
Creates a store with
StorageCodec