vibe.d beta banner
get vibe.d

Class MemorySessionStore

Session store for storing a session in local memory.

If the server is running as a single instance (no thread or process clustering), this kind of session store provies the fastest and simplest way to store sessions. In any other case, a persistent session store based on a database is necessary.

Inherits from


Name Type Description
storageType [get] SessionStorageType Returns the internal type used for storing session keys.


Name Description
create Creates a new session.
destroy Terminates the given session.
get Returns the value for a given session key.
isKeySet Determines if a certain session key is set.
iterateSession Iterates all keys stored in the given session.
open Opens an existing session.
set Sets a name/value pair for a given session.
createSessionInstance Creates a new Session object which sources its contents from this store.
block ddox.authorsblock ddox.copyrightblock ddox.license