summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <domm@cpan.org>2008-12-01 23:05:39 +0100
committerThomas Klausner <domm@cpan.org>2008-12-01 23:05:39 +0100
commitac78f41746caf3d5ff05bc197f55209f3d84225c (patch)
tree9acf853667e45610428d745b8f07f221c860f1a0
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-ac78f41746caf3d5ff05bc197f55209f3d84225c.tar.gz
Simple-OpenID-ac78f41746caf3d5ff05bc197f55209f3d84225c.tar.bz2
Simple-OpenID-ac78f41746caf3d5ff05bc197f55209f3d84225c.zip
added memcached for sessions
-rw-r--r--Build.PL7
-rw-r--r--lib/PAUSE/OpenID.pm7
-rw-r--r--pause_openid.pl26
3 files changed, 39 insertions, 1 deletions
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/],
+ },
+
+};