From: Andrew Ford Date: Thu, 20 Oct 2005 08:09:53 +0000 (+0000) Subject: expanded documentation of Catalyst::Plugin::Session::FastMmap X-Git-Tag: v0.01~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=commitdiff_plain;h=57dbf608ad2080b02fe22ed88dcec44fd997aa4f expanded documentation of Catalyst::Plugin::Session::FastMmap --- diff --git a/Changes b/Changes index dfa5402..6789019 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ Revision history for Perl extension Catalyst::Plugin::Session::FastMmap. 0.13 Xxx Xxx 00 00:00:00 EDT 2005 - Remove cookie expiriation since it introduced a bug. + - expanded documentation 0.12 Thu May 26 00:37:00 EDT 2005 - Seconds it should be. diff --git a/FastMmap.pm b/FastMmap.pm index 0373fff..6980639 100644 --- a/FastMmap.pm +++ b/FastMmap.pm @@ -33,11 +33,16 @@ Catalyst::Plugin::Session::FastMmap - FastMmap sessions for Catalyst =head1 DESCRIPTION -Fast sessions. +C is a fast session plugin for +Catalyst that uses an mmap'ed file to act as a shared memory +interprocess cache. It is based on C. + =head2 EXTENDED METHODS -=head3 finalize +=over 4 + +=item finalize =cut @@ -74,7 +79,7 @@ sub finalize { return $c->NEXT::finalize(@_); } -=head3 prepare_action +=item prepare_action =cut @@ -112,7 +117,9 @@ sub session { } } -=head3 setup +=item setup + +Sets up the session cache file. =cut @@ -132,11 +139,15 @@ sub setup { return $self->NEXT::setup(@_); } +=back + =head2 METHODS -=head3 session +=over 4 + +=item session -=head3 uri +=item uri Extends an uri with session id if needed. @@ -156,28 +167,46 @@ sub uri { return $uri; } +=back + =head2 CONFIG OPTIONS -=head3 rewrite +=over 4 + +=item rewrite + +If set to a true value sessions are automatically stored in the url; +defaults to false. + +=item storage + +Specifies the file to be used for the sharing of session data; +defaults to C. -To enable automatic storing of sessions in the url set this to a true value. +Note that the file will be created with mode 0640, which means that it +will only be writeable by processes running with the same uid as the +process that creates the file. If this may be a problem, for example +if you may try to debug the program as one user and run it as another, +specify a filename like C<< /tmp/session-$> >>, which includes the +UID of the process in the filename. -=head3 storage -File to mmap for sharing of data, defaults to /tmp/session. +=item expires -=head3 expires +Specifies the session expiry time in seconds; defaults to 86,400, +i.e. one day. -how many seconds until the session expires. defaults to 1 day +=back =head1 SEE ALSO -L L. +L, L. =head1 AUTHOR -Sebastian Riedel, C -Marcus Ramberg C +Sebastian Riedel ECE, +Marcus Ramberg ECE, +Andrew Ford ECE =head1 COPYRIGHT