NAME
POE::Session::PSA - POE Sessions from PSA Caches
SYNOPSIS
# `from basics' - the
my $session = POE::Session::PSA->create
(cache => PSA::Cache->new(...),
root => "/something", # `root' dir of session
... # normal POE::Session args
);
# normal usage in a PSA page
my $thread = $psa->cache->mk_session
(root => "/something",
...
);
DESCRIPTION
A POE::Session::PSA is very much like a regular POE session, except that its states are automatically pulled from the PSA code Cache (see PSA::Cache).
What this means is that `states' of the POE Session are essentially PSA::Cache pages.
To best use this, pages are required to use $psa->yield("page")
rather than $psa->run("page")
to invoke the `next' action that they want to do. $psa->run("page")
still works, but you lose many of the advantages of POE.
It is not required to list all the states
INTERFACE
POE::Session::PSA->create(...)
Creates a new PSA POE session, and returns it.