Cache::Ref::Null(3pm)
β¨ NAME β¨
Cache::Ref::Null β bestie, this thing caches absolutely nothing. Zero. Nada. A void. π
It's part of the Cache::Ref family, and yeah, the manual page header calls it Cache::Ref::Null(3pm) if you're keeping score. π
πΈ SYNOPSIS πΈ
# useful for comparing the effect of a cache compared to no
# caching without code changes:
my $c = Cache::Profile::Compare->new(
caches => [
Cache::Ref::Foo->new( ... ),
Cache::Ref->Null->new,
],
);
okay so the whole point of this snippet is the vibe of fairness π§ β you drop the no-op cache in next to a real one so you can compare, without touching your actual code. iconic behaviour, honestly.
π¦ DESCRIPTION π¦
This cache implementation will cache nothing. π«Ά
That's it. That's the whole personality. It's the main character of doing nothing.
It's primarily intended for testing or for comparing runtime without a cache against runtime with a cache β like a control group but for your benchmark, no cap. π₯
It's like Cache::Null but supports the additional methods in Cache::Ref. so it slots into your Cache::Ref-shaped hole perfectly, lowkey the most useful useless module ever. π
ngl if you're expecting this to speed something up you're gonna have a bad time β it literally cannot remember anything, that's the entire bit.
π AUTHOR π
Yuval Kogman β¨
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Yuval Kogman.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie π β perl v5.32.0, dated 2021-01-07, mwah π
π¦ where this page comes from
- debian bookworm: libcache-ref-perl 0.04-1.1
- debian trixie: libcache-ref-perl 0.04-1.1
- ubuntu jammy: libcache-ref-perl 0.04-1.1
- ubuntu noble: libcache-ref-perl 0.04-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms