CHI::M...::Info(3pm)

πŸ“¦
version 0.07 Β· 3 versions
, in ubuntu jammy, ubuntu noble

πŸ’– CHI::M...::Info β€” it's giving ✨manual page✨

okay bestie so this is CHI::Memoize::Info, part of the User Contributed Perl Documentation situation, and it is literally just the lore about a memoized function. like, everything you'd wanna know about the function you just memoized. that's it, that's the page 🫢


🌸 VERSION 🌸

version 0.07 β€” yeah we're on 0.07, she's a lil vintage, we love her πŸ’…


✨ SYNOPSIS ✨

so here's the whole vibe, bestie:

use CHI::Memoize qw(:all);
memoize('func');

# then

my $info = memoized('func');

# The CHI cache where memoize results are stored
#
my $cache = $info->cache;
$cache->clear;

# The original function, and the new wrapped function
#
my $orig = $info->orig;
my $wrapped = $info->wrapped;

like β€” you memoize('func'), you call memoized('func'), and boom, you get an info object that knows everything about what you just did. no cap πŸ”₯


πŸ‘‘ METHODS πŸ‘‘

three methods, all iconic, all slaying:

  • cache β€” this one hands you the CHI cache where the memoize results for this function are actually being stored. that's your cache, bestie. you can do whatever with it. the example above literally just clears it, main character move.
  • orig β€” the original code reference, exactly as it was when memoize got called on it. the before. the pre-glow-up. πŸ™ˆ
  • wrapped β€” the wrapped code reference that memoize created. the after. the new fit. the whole point. πŸ’…

πŸ¦‹ AUTHOR πŸ¦‹

Jonathan Swartz <swartz@pobox.com> β€” the icon, the legend, the one who wrote this. bow down πŸ‘‘


so the legal tea, periodt:

This software is copyright (c) 2011 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.

like β€” it's free, it's Perl-licensed, go wild (responsibly) 🌈


and that's the whole page, bestie!! this was perl v5.28.0 coded up on 2018-10-03, and honestly? she still eats. mwah πŸ’–βœ¨

πŸ“¦ where this page comes from