ktor-server-sessions / io.ktor.sessions / CacheStorage

CacheStorage

class CacheStorage : SessionStorage

Constructors

<init>

CacheStorage(delegate: SessionStorage, idleTimeout: Long)

Properties

delegate

val delegate: SessionStorage

Functions

invalidate

suspend fun invalidate(id: String): Unit

read

suspend fun <R> read(id: String, consumer: suspend (ByteReadChannel) -> R): R

write

suspend fun write(id: String, provider: suspend (ByteWriteChannel) -> Unit): Unit