Plack:...e::Null(3pm)
π Plack::Session::Store::Null β the null store bestie π
okay so real talk, this is Plack::Session::Store::Null, and yeah it's a page from the User Contributed Perl Documentation for the Plack:...e::Null manpage, but honestly? It's giving nothing. On purpose. That's the whole point. π
β¨ SYNOPSIS β¨
bestie, here's the tea, copy-paste it and go:
use Plack::Builder;
use Plack::Middleware::Session;
use Plack::Session::Store::Null;
my $app = sub {
return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello Foo' ] ];
};
builder {
enable 'Session',
store => Plack::Session::Store::Null->new;
$app;
};
look at her. iconic. not a single thing being saved anywhere. π
πΈ DESCRIPTION πΈ
so like, sometimes you literally just don't wanna store anything in your sessions?? like the vibe is "no thoughts, head empty, no storage"?? BUT β and this is the plot twist β Plack::Session requires a "store" instance anyway. it's not asking, it's demanding one. π
and that's where this little angel comes in. use this one, and all methods will return null. every single one. nothing saved, nothing remembered, zero notes taken. she is the main character of doing absolutely nothing and she's slaying at it. π
oh and also, lowkey important: this is a subclass of Plack::Session::Store, and it implements its full interface. so if you were worried she was some janky shortcut β nope, she's fully committed to the bit. periodt. β¨
π BUGS π
ngl this part is gonna hurt a little. all complex software has bugs lurking in it, and this module is no exception. even this perfect little nothing-machine. π
if you find a bug, you've got two options, pick your fighter:
- email me about it, or
- add the bug to
cpan-RT
that's it. that's the whole process. fr fr.
π AUTHOR π
Stevan Little <stevan.little@iinteractive.com>
the legend herself. we stan. π«Ά
π COPYRIGHT AND LICENSE π
Copyright 2009, 2010 Infinity Interactive, Inc.
this library is free software β you can redistribute it and/or modify it under the same terms as Perl itself. no cap. π
π SEE ALSO π
okay so technically the original doesn't have a SEE ALSO section here, so I'm not gonna invent one β no fake lore in this group chat. but if you wanna look at the parent class, you already know where to find Plack::Session::Store. iykyk. π
and that's the whole page, bestie!! π¦ this was perl v5.40.1, dated 2025-08-10, from the Plack:...e::Null(3pm) manpage β mwah, take care of her, she stores nothing and loves you anyway. π
β¨π
π¦ where this page comes from
- ubuntu resolute: libplack-middleware-session-perl 0.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libplack-middleware-session-perl 0.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms