projects
/
catagits/Web-Session.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
adding in the dump_session method to the Store classes
[catagits/Web-Session.git]
/
lib
/
Plack
/
Session
/
Store
/
Cache.pm
diff --git
a/lib/Plack/Session/Store/Cache.pm
b/lib/Plack/Session/Store/Cache.pm
index
7b44b00
..
62232f8
100644
(file)
--- a/
lib/Plack/Session/Store/Cache.pm
+++ b/
lib/Plack/Session/Store/Cache.pm
@@
-53,6
+53,11
@@
sub cleanup {
$self->cache->remove($session_id);
}
+sub dump_session {
+ my ($self, $session_id) = @_;
+ $self->cache->get( $session_id ) || {};
+}
+
1;
__END__