1MooseX::Storage::EngineUM:so:eoTrsreaCXio:tn::tS:rtDioibrsuaatgbeeld:e:CPEyencrgllienDDeeo:tc:euTcmrteainiottna:(t:3iD)oinsableCycleDetection(3)
2
3
4
6 MooseX::Storage::Engine::Trait::DisableCycleDetection - A custom trait
7 to bypass cycle detection
8
10 version 0.53
11
13 package Double;
14 use Moose;
15 use MooseX::Storage;
16 with Storage( traits => ['DisableCycleDetection'] );
17
18 has 'x' => ( is => 'rw', isa => 'HashRef' );
19 has 'y' => ( is => 'rw', isa => 'HashRef' );
20
21 my $ref = {};
22
23 my $double = Double->new( 'x' => $ref, 'y' => $ref );
24
25 $double->pack;
26
28 "MooseX::Storage" implements a primitive check for circular references.
29 This check also triggers on simple cases as shown in the Synopsis.
30 Providing the "DisableCycleDetection" traits disables checks for any
31 cyclical references, so if you know what you are doing, you can bypass
32 this check.
33
34 This trait is applied to an instance of MooseX::Storage::Engine, for
35 the user-visible version shown in the SYNOPSIS, see
36 MooseX::Storage::Traits::DisableCycleDetection
37
39 Bugs may be submitted through the RT bug tracker
40 <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
41 bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
42 Storage@rt.cpan.org>).
43
44 There is also a mailing list available for users of this distribution,
45 at <http://lists.perl.org/list/moose.html>.
46
47 There is also an irc channel available for users of this distribution,
48 at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
49
51 · Chris Prather <chris.prather@iinteractive.com>
52
53 · Stevan Little <stevan.little@iinteractive.com>
54
55 · יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
56
58 This software is copyright (c) 2007 by Infinity Interactive, Inc.
59
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62
63
64
65perl v5.32.0 MooseX::Stor2a0g2e0:-:0E7n-g2i8ne::Trait::DisableCycleDetection(3)