SessionStorage

interface SessionStorage

Represents a way to write, read and invalidate session bits.

Functions

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

Invalidates session id.

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

Reads session id using a consumer as R

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

Writes a session id using a specific provider.

Inheritors

Link copied to clipboard
Link copied to clipboard