CacheStorage

class CacheStorage(delegate: SessionStorage, idleTimeout: Long) : SessionStorage

Functions

Link copied to clipboard
open suspend override fun invalidate(id: String)

Invalidates session id.

Link copied to clipboard
open suspend override fun <R> read(id: String, consumer: suspend (ByteReadChannel) -> R): R

Reads session id using a consumer as R

Link copied to clipboard
open suspend override fun write(id: String, provider: suspend (ByteWriteChannel) -> Unit)

Writes a session id using a specific provider.

Properties

Link copied to clipboard
val delegate: SessionStorage