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
$self->SUPER::new();
Return the cache class for this SessionManager.
Set the cache class for this SessionManager.
Parameters:
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.
undef
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.
Throws:
if the SessionManager has already been started or if the cache cannot be initialized
Cache::Cache, Wombat::Container, Wombat::Core::Session, Wombat::SessionManager::SessionManagerBase
Brian Moseley, bcm@maz.org
To install Wombat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wombat
CPAN shell
perl -MCPAN -e shell install Wombat
For more information on module installation, please visit the detailed CPAN module installation guide.