RedisSessionStore

Undocumented in source.

Constructors

this
this(string host, long database, ushort port)

Constructs a new Redis session store.

Members

Functions

create
Session create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Variant get(string id, string name, Variant defaultVal)
Undocumented in source. Be warned that the author may not have intended to support it.
isKeySet
bool isKeySet(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
iterateSession
int delegate(int delegate(ref string key, ref Variant value)) iterateSession(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
iterateSession
int iterateSession(string id, int delegate(string key) @(safe) del)
Undocumented in source. Be warned that the author may not have intended to support it.
open
Session open(string id)
Undocumented in source. Be warned that the author may not have intended to support it.
releaseUnusedConnections
void 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
void remove(string id, string key)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(string id, string name, Variant value)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

expirationTime
Duration expirationTime [@property getter]
Duration expirationTime [@property setter]

The duration without access after which a session expires.

storageType
SessionStorageType storageType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta