kiokudb::meta::attribute::lazy(3pm) debian man page | unix.com

Man Page: kiokudb::meta::attribute::lazy

Operating Environment: debian

Section: 3pm

KiokuDB::Meta::Attribute::Lazy(3pm)			User Contributed Perl Documentation		       KiokuDB::Meta::Attribute::Lazy(3pm)

NAME
KiokuDB::Meta::Attribute::Lazy - Trait for lazy loaded attributes
SYNOPSIS
# in your class: package Foo; use KiokuDB::Class; has bar => ( traits => [qw(KiokuDB::Lazy)], isa => "Bar", is => "ro", ); # Later: my $foo = $dir->lookup($id); # bar is not yet loaded, it will be lazily fetched during this call: $foo->bar;
DESCRIPTION
This Moose::Meta::Attribute trait provides lazy loading on a per field basis for objects stored in KiokuDB. Instead of using proxy objects with AUTOLOAD, overloading, or similar hacks, you can declaratively specify which attributes you want to make lazy, and this will be done cleanly through the MOP. This is implemented by using a placeholder object, KiokuDB::Thunk which contains references to the ID and the linker, and KiokuDB::Meta::Instance will know to replace the placeholder with the actual loaded object when it is fetched from the object by an accessor. perl v5.12.4 2010-10-11 KiokuDB::Meta::Attribute::Lazy(3pm)
Related Man Pages
kiokudb::backend::role::txn::memory(3pm) - debian
kiokudb::collapser(3pm) - debian
kiokudb::linker(3pm) - debian
kiokudb::typemap(3pm) - debian
kiokudb::util(3pm) - debian
Similar Topics in the Unix Linux Community
Installing Dash Shell on OS X Lion
Find columns in a file based on header and print to new file
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?