CacheStorage

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

A caching storage for sessions.

Constructors

Link copied to clipboard
constructor(delegate: SessionStorage, idleTimeout: Long)

Properties

Link copied to clipboard

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.