CacheStorage

class CacheStorage : SessionStorage

Constructors

<init>

CacheStorage(delegate: SessionStorage, idleTimeout: Long)

Properties

delegate

val delegate: SessionStorage

Functions

invalidate

suspend fun invalidate(id: String): Unit

Invalidates session id.

read

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

Reads session id using a consumer as R

write

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

Writes a session id using a specific provider.