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.

Inherited Members

From SessionStore

storageType
SessionStorageType storageType [@property getter]

Returns the internal type used for storing session keys.

create
Session create()

Creates a new session.

open
Session open(string id)

Opens an existing session.

set
void set(string id, string name, Variant value)

Sets a name/value pair for a given session.

get
Variant get(string id, string name, Variant defaultVal)

Returns the value for a given session key.

isKeySet
bool isKeySet(string id, string key)

Determines if a certain session key is set.

remove
void remove(string id, string key)

Removes a key from a session

destroy
void destroy(string id)

Terminates the given session.

iterateSession
int iterateSession(string id, int delegate(string key) @(safe) del)

Iterates all keys stored in the given session.

createSessionInstance
Session createSessionInstance(string id)

Creates a new Session object which sources its contents from this store.

Meta