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