Checking in changes prior to tagging of version 0.11. Changelog diff is:
[catagits/Web-Session.git] / lib / Plack / Session / Store / Cache.pm
index 3a2397e..29f7364 100644 (file)
@@ -2,7 +2,7 @@ package Plack::Session::Store::Cache;
 use strict;
 use warnings;
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.11';
 our $AUTHORITY = 'cpan:STEVAN';
 
 use Scalar::Util qw[ blessed ];
@@ -30,10 +30,10 @@ sub fetch {
 
 sub store {
     my ($self, $session_id, $session) = @_;
-    $self->cache->set($session_id => $session->dump);
+    $self->cache->set($session_id => $session);
 }
 
-sub cleanup {
+sub remove {
     my ($self, $session_id) = @_;
     $self->cache->remove($session_id);
 }