KiokuD...nstance(3pm)
β¨ NAME β¨
KiokuDB::Meta::Instance β bestie, this is the Moose::Meta::Instance level support for lazy loading π
(yes it's really called that, and yes, the manpage title got truncated to KiokuD...nstance(3pm) because Unix is dramatic like that π)
πΈ VERSION πΈ
version 0.57 β periodt π
π¦ SYNOPSIS π¦
# use KiokuDB::Meta::Attribute::Lazy
That's it. That's the whole synopsis. It's giving minimalism, it's giving "the real work happens behind the scenes," and honestly? Iconic. π
π DESCRIPTION π
Okay so here's the tea β β this role gets applied to the meta instance class automatically by KiokuDB::Class. You don't do it yourself, it just happens, like how your group chat gets a new member and suddenly the vibe is different. No cap. π«Ά
And what does it do when it's there? When it spots KiokuDB::Thunk objects chillin' in the low level attribute storage, it causes them to be loaded. Like, it sees them, it wakes them up, it brings them into the light. π
The whole point β and this is the slay part β is that your Moose::Meta::Attributes get to stay oblivious to the fact that the value is deferred. π They're just out here living their best life, and they never find out that the value was snoozing this whole time.
And because your attributes are oblivious, everything downstream keeps working normally:
- all the type constraints β
- all the lazy defaults β
- and all the various other Moose features β
Not a single one of them breaks. It's the deferral that stays lowkey, and the Moose behaviour that stays highkey correct. β¨
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
Bestie, note that "same terms as the Perl 5 programming language system itself" is doing a lot of legal heavy lifting there, so go read those terms if you're planning to redistribute. Not me being a lawyer, just me being a good friend. π
Mwah π and that's the whole page! Shoutout to perl v5.34.0, which rendered this lil masterpiece on 2022-05-23, and to the manpage title KiokuD...nstance(3pm) for keeping it mysterious. Go forth and lazy-load responsibly, bestie. π§ββοΈβ
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms