toggle menu
KStore
1.0.0-SNAPSHOT
common
switch theme
search in API
kstore-file
/
io.github.xxfast.kstore.file
Package-level
declarations
Types
Functions
Types
File
Codec
Link copied to clipboard
class
FileCodec
<
T
:
@
Serializable
Any
>
(
file
:
Path
,
tempFile
:
Path
,
json
:
Json
,
serializer
:
KSerializer
<
T
>
)
:
Codec
<
T
>
Functions
File
Codec
Link copied to clipboard
inline
fun
<
T
:
@
Serializable
Any
>
FileCodec
(
file
:
Path
,
tempFile
:
Path
=
Path("$file.temp")
,
json
:
Json
=
DefaultJson
)
:
FileCodec
<
T
>
Creates a store with
FileCodec
with json serializer
store
Of
Link copied to clipboard
inline
fun
<
T
:
@
Serializable
Any
>
storeOf
(
file
:
Path
,
default
:
T
?
=
null
,
enableCache
:
Boolean
=
true
,
json
:
Json
=
DefaultJson
)
:
KStore
<
T
>
Creates a store with
FileCodec