vibe.d beta banner
get vibe.d
0.10.0

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

Class RedisSessionStore

class RedisSessionStore
  : SessionStore ;

Constructors

NameDescription
this (host, database, port) Constructs a new Redis session store.

Properties

NameTypeDescription
expirationTime[get, set] core.time.DurationThe duration without access after which a session expires.
storageType[get] SessionStorageTypeReturns the internal type used for storing session keys.

Methods

NameDescription
create () Creates a new session.
destroy (id) Terminates the given session.
get (id, name, defaultVal)
isKeySet (id, key) Determines if a certain session key is set.
iterateSession (id)
iterateSession (id, del) Iterates all keys stored in the given session.
open (id) Opens an existing session.
releaseUnusedConnections () Release all connections that are not in use. Call this at the end of your program to clean up unused sockets that may be held by the GC.
remove (id, key) Removes a key from a session
set (id, name, value)
get (id, name, defaultVal) Returns the value for a given session key.
set (id, name, value) Sets a name/value pair for a given session.
createSessionInstance (id) Creates a new Session object which sources its contents from this store.
Authors
Copyright
License