toggle menu
KacheController
jvm
switch theme
search in API
kachecontroller-mongo
/
com.funyinkash.kachecontroller
/
MongoKacheController
/
set
set
suspend
fun
<
T
:
Model
>
set
(
collection
:
MongoCollection
<
T
>
,
cacheKey
:
String
=
collection.cacheKey()
,
serializer
:
KSerializer
<
T
>
,
expire
:
Duration
?
=
null
,
fieldExpire
:
Duration
?
=
null
,
invalidateVolatiles
:
Boolean
=
true
,
setData
:
suspend
MongoCollection
<
T
>
.
(
)
->
T
?
)
:
T
?