vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

Class MemorySessionStore

Session store for storing a session in local memory.

class MemorySessionStore
  : SessionStore ;

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.

Properties

NameTypeDescription
storageType[get]SessionStorageTypeReturns the internal type used for storing session keys.

Methods

NameDescription
createCreates a new session.
destroyTerminates the given session.
get
isKeySetDetermines if a certain session key is set.
iterateSession
iterateSession
openOpens an existing session.
removeRemoves a key from a session
set
getReturns the value for a given session key.
iterateSessionIterates all keys stored in the given session.
setSets a name/value pair for a given session.
createSessionInstanceCreates a new Session object which sources its contents from this store.
Authors

Jan Krüger, Sönke Ludwig, Ilya Shipunov

Copyright

© 2012-2013 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.