KiokuD...elegate(3pm)
π NAME π
KiokuDB::Backend::Serialize::Delegate β ok so bestie, this is the vibe: instead of making a role do the serialization for a backend, you just hand it a whole KiokuDB::Serializer object and let that do the work. Delegate era. π
β¨ VERSION β¨
version 0.57 β yes, we're on 0.57, keep up π«Ά
π SYNOPSIS π
package MyBackend;
use Moose;
with qw(
...
KiokuDB::Backend::Serialize::Delegate
);
MyBackend->new(
serializer => "yaml",
);
Likeβ¦ that's it. You compose the role, you pass a serializer string, and boom π₯
πΈ DESCRIPTION πΈ
So here's the tea, bestie: this role gives your backend a serialzier attribute β yep, that's literally how it's spelled in the docs, no cap, we are not fixing it, it's part of the lore now π β and by default that attribute is a KiokuDB::Serializer::Storable.
The iconic part? It has coercions from a moniker string. Which means picking your serialization format is as easy as passing a little string. It's giving effortless. It's giving "format selection but make it cute". β¨
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β main character energy fr fr π
π 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. Periodt. π©·
and that's the whole page, bestie β perl v5.34.0, dated 2022-05-23, from the Perl User Contributed Documentation, mwah π
π¦ 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