NAME
Apache2::WebApp::Plugin::Session::Memcached - Plugin providing session
storage
SYNOPSIS
my $obj = $c->plugin('Session')->method( ... ); # Apache2::WebApp::Plugin::Session->method()
or
$c->plugin('Session')->method( ... );
DESCRIPTION
Store persistent data using memcached (memory cache daemon) while
maintaining a stateful session using web browser cookies.
<http://www.danga.com/memcached>
PREREQUISITES
This package is part of a larger distribution and was NOT intended to be
used directly. In order for this plugin to work properly, the following
packages must be installed:
Apache2::WebApp
Apache2::WebApp::Plugin::Cookie
Apache2::WebApp::Plugin::Session
Apache::Session::Memcached
Apache::Session::Store::Memcached
Params::Validate
INSTALLATION
From source:
$ tar xfz Apache2-WebApp-Plugin-Session-Memcached-0.X.X.tar.gz
$ perl MakeFile.PL PREFIX=~/path/to/custom/dir LIB=~/path/to/custom/lib
$ make
$ make test
$ make install
Perl one liner using CPAN.pm:
$ perl -MCPAN -e 'install Apache2::WebApp::Plugin::Session::Memcached'
Use of CPAN.pm in interactive mode:
$ perl -MCPAN -e shell
cpan> install Apache2::WebApp::Plugin::Session::Memcached
cpan> quit
Just like the manual installation of perl modules, the user may need
root access during this process to insure write permission is allowed
within the installation directory.
CONFIGURATION
Unless it already exists, add the following to your projects
*webapp.conf*
[session]
storage_type = memcached
expires = 1h
[memcached]
servers = 127.0.0.1:11211, 10.0.0.10:11212, /var/sock/memcached
threshold = 10_000
OBJECT METHODS
Please refer to Apache2::WebApp::Plugin::Session for method info.
SEE ALSO
Apache2::WebApp, Apache2::WebApp::Plugin,
Apache2::WebApp::Plugin::Cookie, Apache2::WebApp::Plugin::Memcached,
Apache2::WebApp::Plugin::Session, Apache::Session,
Apache::Session::Memcached
AUTHOR
Marc S. Brooks, <mbrooks@cpan.org> - <http://mbrooks.info>
COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
See <http://dev.perl.org/licenses/artistic.html>