Wombat::SessionManager::StandardSessionManager - caching session manager implementation
Subclass of Wombat::SessionManager::SessionManagerBase that uses an implementation of Cache::Cache to manage a lightweight cache of sessions. Typically Cache::MemoryCache will be used in single-process scenarios; Cache::SharedMemoryCache is useful for multi-process deployments. This class does not support any persistence or distributable capabilities.
Construct and return a Wombat::SessionManager::StandardSessionManager instance, initializing fields appropriately. If subclasses override the constructor, they must be sure to call
Return the cache class for this SessionManager.
Set the cache class for this SessionManager.
the Cache::Cache implementation to use for the cache
Add this Session to the cache of active Sessions for this SessionManager.
the Wombat::Session to be added
Return the display name of this SessionManager.
Return the active Session cached by this SessionManager with the specified id, or
undef if no session exists with that id.
the id for the Session to be returned
Return an array containing the active Sessions cached by this SessionManager.
Remove this Session from this SessionManager's cache.
the Wombat::Session to remove
Write the current state of this Session to this SessionManager's cache.
the Wombat::Session to save
Prepare for active use of this SessionManager and initialize the session cache. This method should be called before any of the public methods of the SessionManager are utilized.
if the SessionManager has already been started or if the cache cannot be initialized
Brian Moseley, email@example.com