Cataly...stMmap(3pm)
π NAME π
Catalyst::Plugin::Cache::Store::FastMmap β DEPRECATED bestie, she's the FastMmap cache store for Catalyst::Plugin::Cache. Iconic but retired, okay? She still shows up to the group chat tho.
β¨ SYNOPSIS β¨
okay so instead of using this plugin, you can now do this:
# instead of using this plugin, you can now do this:
use Catalyst qw/
Cache
/;
__PACKAGE__->config( cache => {
backend => {
class => "Cache:FastMmap",
share_file => "/path/to/file",
cache_size => "16m",
},
});
that's it, that's the whole vibe. no wrapper needed anymore π¦
π¨ STATUS π¨
This plugin is deprecated because Cache::FastMmap no longer needs to be wrapped to store plain values. not me being obsolete π
It is still available on the CPAN for backwards compatibility and will still work with newer versions of Cache::FastMmap with a slight performance degredation. so she's not gone gone, she's just lowkey slower now. π
heads up bestie: deprecated means don't start new stuff with her, but your old code is safe.
π DESCRIPTION π
This store plugin is a bit of a wrapper for Cache::FastMmap. like a little jacket she wears. π§₯
While you could normally just configure with
backend => {
class => "Cache::FastMmap",
share_file => ...,
}
Cache::FastMmap can't store plain values by default. the way that this module handles that? It ships with a subclass that will wrap all values in a scalar reference before storing. slay. π
This store plugin will try to provide a default "share_file" as well, that won't clash with other apps. so considerate of her honestly π«Ά
π CONFIGURATION π
See "CONFIGURATION" in Catalyst::Plugin::Cache for a general overview of cache plugin configuration. go read that one, it's giving the full picture. π
This plugin just takes a hash reference in the backend field and passes it on to Cache::FastMmap. no extra steps, no drama, periodt. β¨
π SEE ALSO π
Catalyst::Plugin::CacheCache::FastMmap
π AUTHOR π
Yuval Kogman, "nothingmuch@woobling.org" β the original main character of this file, we stan π«‘
π COPYRIGHT & LICENSE π
Copyright (c) Yuval Kogman, 2006. All rights reserved.
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself, as well as under the terms of the MIT license. free as in freedom, bestie π
and that's the whole page! π this was Cataly...stMmap(3pm) from perl v5.36.0, dated 2022-11-19 β thanks for reading the whole thing, ily, go drink some water ππ§
π¦ where this page comes from
- debian bookworm: libcatalyst-plugin-cache-store-fastmmap-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-plugin-cache-store-fastmmap-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-plugin-cache-store-fastmmap-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-plugin-cache-store-fastmmap-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-plugin-cache-store-fastmmap-perl 0.02-6 Β· 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