adding in the dump_session method to the Store classes
[catagits/Web-Session.git] / lib / Plack / Session / Store / Cache.pm
index 7b44b00..62232f8 100644 (file)
@@ -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__