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

KiokuDB::TypeMap::Entry::MOP - A KiokuDB::TypeMap entry for objects with a metaclass.

SYNOPSIS

    KiokuDB::TypeMap->new(
        entries => {
            'My::Class' => KiokuDB::TypeMap::Entry::MOP->new(
                intrinsic => 1,
            ),
        },
    );

DESCRIPTION

This typemap entry handles collapsing and expanding of Moose based objects.

It supports anonymous classes with runtime roles, the KiokuDB::Role::ID role.

Code for immutable classes is cached and performs several orders of magnitude better, so make use of "make_immutable" in Moose::Meta::Class.

ATTRIBUTES

intrinsic

If true the object will be collapsed as part of its parent, without an ID.