From ac78f41746caf3d5ff05bc197f55209f3d84225c Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 1 Dec 2008 23:05:39 +0100 Subject: added memcached for sessions --- Build.PL | 7 +++++++ lib/PAUSE/OpenID.pm | 7 ++++++- pause_openid.pl | 26 ++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 pause_openid.pl diff --git a/Build.PL b/Build.PL index 78df8f1..5058602 100644 --- a/Build.PL +++ b/Build.PL @@ -14,6 +14,13 @@ my $builder = Module::Build->new( 'Catalyst::Runtime' => '5.7014', 'Net::OpenID::Server' => '1.02', 'Catalyst::View::XSLT' => 0, + 'Catalyst::Plugin::Cache::Memcached' => '0.6', + 'Catalyst::Plugin::Session' => '0', + 'Catalyst::Plugin::Session::State::Cookie' => '0', + 'Catalyst::Plugin::Session::Store::FastMmap' => '0', + + + }, add_to_cleanup => ['PAUSE-OpenID-*'], create_makefile_pl => 'passthrough', diff --git a/lib/PAUSE/OpenID.pm b/lib/PAUSE/OpenID.pm index 1faf82b..f99274d 100644 --- a/lib/PAUSE/OpenID.pm +++ b/lib/PAUSE/OpenID.pm @@ -16,7 +16,12 @@ use Catalyst::Runtime '5.70'; use parent qw/Catalyst/; use Catalyst qw/-Debug ConfigLoader - Static::Simple/; + Static::Simple + + Session + Session::Store::Memcached + Session::State::Cookie + /; our $VERSION = '0.01'; # Configure the application. diff --git a/pause_openid.pl b/pause_openid.pl new file mode 100644 index 0000000..cd72605 --- /dev/null +++ b/pause_openid.pl @@ -0,0 +1,26 @@ +use strict; +use warnings; + +# Returnvalue +return { + + # Catalyst + name => 'PAUSE::OpenID', + + session => { + flash_to_stash => 1, + expires => 172800, # two days + memcached_new_args => { + data => [ "10.10.10.108:11211" ], + namespace => "pause_openid_session", + }, + }, + + # Static::Simple + 'static' => { + debug => 0, + logging => 0, + dirs => [qw/static/], + }, + +}; -- cgit v1.2.3