ktor-server-sessions
Module Contents
alltypes
Module Contents
interface
Cache
<
in
K
:
Any
,
V
:
Any
>
Module Contents
abstract
suspend
fun
getOrCompute
(
key
:
K
)
:
V
abstract
fun
invalidate
(
key
:
K
)
:
V
?
abstract
fun
invalidate
(
key
:
K
,
value
:
V
)
:
Boolean
abstract
fun
invalidateAll
(
)
:
Unit
abstract
fun
peek
(
key
:
K
)
:
V
?
class
CacheStorage
:
SessionStorage
Module Contents
CacheStorage
(
delegate
:
SessionStorage
,
idleTimeout
:
Long
)
val
delegate
:
SessionStorage
suspend
fun
invalidate
(
id
:
String
)
:
Unit
suspend
fun
<
R
>
read
(
id
:
String
,
consumer
:
suspend
(
ByteReadChannel
)
->
R
)
:
R
suspend
fun
write
(
id
:
String
,
provider
:
suspend
(
ByteWriteChannel
)
->
Unit
)
:
Unit
package
io.ktor.sessions
Module Contents
interface
Cache
<
in
K
:
Any
,
V
:
Any
>
Module Contents
abstract
suspend
fun
getOrCompute
(
key
:
K
)
:
V
abstract
fun
invalidate
(
key
:
K
)
:
V
?
abstract
fun
invalidate
(
key
:
K
,
value
:
V
)
:
Boolean
abstract
fun
invalidateAll
(
)
:
Unit
abstract
fun
peek
(
key
:
K
)
:
V
?
class
CacheStorage
:
SessionStorage
Module Contents
CacheStorage
(
delegate
:
SessionStorage
,
idleTimeout
:
Long
)
val
delegate
:
SessionStorage
suspend
fun
invalidate
(
id
:
String
)
:
Unit
suspend
fun
<
R
>
read
(
id
:
String
,
consumer
:
suspend
(
ByteReadChannel
)
->
R
)
:
R
suspend
fun
write
(
id
:
String
,
provider
:
suspend
(
ByteWriteChannel
)
->
Unit
)
:
Unit
fun
directorySessionStorage
(
rootDir
:
File
,
cached
:
Boolean
=
true
)
:
SessionStorage