Cataly...stMmap(3pm)

πŸ“¦
version 0.02 Β· 2 versions
  • 0.02 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.02 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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::Cache
  • Cache::FastMmap

πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman, "nothingmuch@woobling.org" β€” the original main character of this file, we stan 🫑


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