use strict;
use warnings;
+our $VERSION = '0.03';
+our $AUTHORITY = 'cpan:STEVAN';
+
use Storable ();
use parent 'Plack::Session::Store';
die "Storage directory (" . $params{'dir'} . ") is not writeable"
unless -w $params{'dir'};
- $params{'serializer'} ||= sub { Storable::nstore( @_ ) };
- $params{'deserializer'} ||= sub { Storable::retrieve( @_ ) };
+ $params{'serializer'} ||= sub { Storable::lock_nstore( @_ ) };
+ $params{'deserializer'} ||= sub { Storable::lock_retrieve( @_ ) };
bless { %params } => $class;
}
This implements a basic file based storage for session data. By
default it will use L<Storable> to serialize and deserialize the
-data, but this can be configured easily.
+data, but this can be configured easily.
This is a subclass of L<Plack::Session::Store> and implements
it's full interface.
=head1 COPYRIGHT AND LICENSE
-Copyright 2009 Infinity Interactive, Inc.
+Copyright 2009, 2010 Infinity Interactive, Inc.
L<http://www.iinteractive.com>