CHI::D...heCache(3pm)
π¦ CHI::Driver::CacheCache β a manual page, but make it bestie π
okay so you found a 3pm page from the User Contributed Perl Documentation section, and honestly? it's a whole vibe. this is CHI::Driver::CacheCache, it lives in the CHI family, and it is literally just a little wrapper situation. let's get into it π«Ά
β¨ NAME β¨
CHI::Driver::CacheCache β CHI wrapper for Cache::Cache
like. that's the whole personality. it wraps. that's it. that's the job π
πΈ VERSION πΈ
version 0.61
(iconic number. no notes. π)
β SYNOPSIS β
here's the moment you've been waiting for, bestie. copy it exactly, don't freestyle:
use CHI;
my $cache = CHI->new(
driver => 'CacheCache',
cc_class => 'Cache::FileCache',
cc_options => { cache_root => '/path/to/cache/root' },
);
look at that. clean. immaculate. the driver => 'CacheCache' is you picking this driver, cc_class is which Cache::Cache class you're wrapping, and cc_options is the hashref of stuff that class wants. slay π₯
π DESCRIPTION π
so basically: this driver wraps any Cache::Cache cache.
any of them. all of them. it's giving universal adapter energy. you bring a Cache::Cache, this driver holds it, CHI interface on the outside. no cap. β¨
π CONSTRUCTOR OPTIONS π
when you're using this driver, you can pass the following options to CHI->new() in addition to the CHI.
(yes, that's exactly how the original says it. quoting it verbatim because i am NOT about to invent details, bestie. π)
cc_classβ the name of the Cache::Cache class you want it to create, like e.g.Cache::FileCache. Required. like, actually required. you cannot skip this one, it's not optional, it's not a suggestion, it's a whole requirement πcc_optionsβ a hashref of options that get passed straight to the Cache::Cache constructor. Required. also required. also not optional. bring both or bring nothing π
lowkey the pattern here is: two options, both mandatory, both about the Cache::Cache side of things. the driver is just the bridge. π§
π SEE ALSO π
CHIβ the parent situation, the whole reason we're here, the main character π
π AUTHOR π
Jonathan Swartz <swartz@pobox.com>
(thank you for your service, king π«Ά)
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2021 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
(so yes you can use it, yes you can remix it, just respect the Perl 5 terms. periodt. π )
and that's the page, bestie!! π written by perl v5.32.1, dated 2021-10-15, straight out of the User Contributed Perl Documentation section (3pm), and now it's living rent free in your brain. go wrap a Cache::Cache. you got this. ππ¦β¨
π¦ where this page comes from
- debian bookworm: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchi-perl 0.61-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchi-perl 0.61-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