Adding some additional docs and VERSION, AUTHORITY stuff
[catagits/Web-Session.git] / lib / Plack / Session / Store / Null.pm
CommitLineData
9bb20750 1package Plack::Session::Store::Null;
2use strict;
3use warnings;
4
30cc0a71 5our $VERSION = '0.01';
6our $AUTHORITY = 'cpan:STEVAN';
7
9bb20750 8sub new { bless {} => shift }
9sub fetch {}
10sub store {}
11sub delete {}
12sub cleanup {}
13sub persist {}
14
74e0eff0 15sub dump_session { +{} }
16
9bb20750 171;
18
19__END__
20
21=pod
22
23=head1 NAME
24
25Plack::Session::Store::Null - Null store
26
3d92cf47 27=head1 SYNOPSIS
28
29 use Plack::Builder;
30 use Plack::Middleware::Session;
31 use Plack::Session::Store::Null;
32
33 my $app = sub {
34 return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
35 };
36
37 builder {
38 enable 'Session',
39 store => Plack::Session::Store::Null->new;
40 $app;
41 };
42
9bb20750 43=head1 DESCRIPTION
44
45Sometimes you don't want to store anything in your sessions, but
46L<Plack::Session> requires a C<store> instance, so you can use this
47one and all methods will return null.
48
3d92cf47 49This is a subclass of L<Plack::Session::Store> and implements
50it's full interface.
51
9bb20750 52=head1 BUGS
53
54All complex software has bugs lurking in it, and this module is no
55exception. If you find a bug please either email me, or add the bug
56to cpan-RT.
57
58=head1 AUTHOR
59
60Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
61
62=head1 COPYRIGHT AND LICENSE
63
64Copyright 2009 Infinity Interactive, Inc.
65
66L<http://www.iinteractive.com>
67
68This library is free software; you can redistribute it and/or modify
69it under the same terms as Perl itself.
70
71=cut
72