class SessionStorageMemory : SessionStorage
SessionStorage that stores session contents into memory.
Since it doesn't use any TTL sessions, memory usage will increase while the application is running and session information will be discarded once the server stops.
This is intended for development.
SessionStorageMemory()
SessionStorage that stores session contents into memory. |
suspend fun invalidate(id: String): Unit
Invalidates session id. |
|
suspend fun <R> read(id: String, consumer: suspend (ByteReadChannel) -> R): R
|
|
suspend fun write(id: String, provider: suspend (ByteWriteChannel) -> Unit): Unit
|