logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CHI::Memoize::Info - Information about a memoized function

Author

       Jonathan Swartz <swartz@pobox.com>

Methods

       cache
           The CHI cache where memoize results are stored for this function

       orig
           The original code reference when "memoize" was called

       wrapped
           The wrapped code reference that "memoize" created

Name

       CHI::Memoize::Info - Information about a memoized function

Synopsis

           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;

Version

       version 0.07

See Also