DOKK / manpages / debian 11 / libcatalyst-plugin-cache-perl / Catalyst::Plugin::Cache::Backend::Memory.3pm.en
Catalyst::Plugin::Cache::Backend::Memory(3pm) User Contributed Perl Documentation Catalyst::Plugin::Cache::Backend::Memory(3pm)

Catalyst::Plugin::Cache::Backend::Memory - Stupid memory based caching backend.

    use Catalyst::Plugin::Cache::Backend::Memory;
    my $m = Catalyst::Plugin::Cache::Backend::Memory->new;
    $m->set( foo => "thing" );

This backend uses Storable to cache data in memory.

In combination with an engine like FastCGI/mod_perl/prefork which calls fork() your cache will get async because child processes don't share cache in memory.

2021-01-04 perl v5.32.0