SessionStorageMemory

A storage that keeps session data in memory.

Note that SessionStorageMemory is intended for development only.

Report a problem

See also

Constructors

Link copied to clipboard
constructor()

Functions

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

Invalidates a session with the id identifier. This method prevents a session id from being accessible after this call.

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

Reads a session with the id identifier.

Link copied to clipboard
open suspend override fun write(id: String, value: String)

Writes a session value for id.