The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Cache::CodeBlock - caching via a code block

VERSION

Version 0.02

SYNOPSIS

        use Cache::CodeBlock (
                %CHI
        );

        sub my_data {
                my ($self, @params) = @_;
                my $historical = cache {
                        ...
                        return $data;
                };
                ...
                my $neoteric = cache {
                        ...
                        return $data;
                } 60, $id;
        }

EXPORT

cache

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-cache-codeblock at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cache-CodeBlock. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Cache::CodeBlock

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by LNATION.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)