KiokuD...torable(3pm)
β¨ KiokuDB::Backend::Serialize::Storable β¨
okay so this is a page from the User Contributed Perl Documentation, and the manual name is literally KiokuD...torable(3pm) because someone let the terminal truncate it π (it's KiokuDB::Backend::Serialize::Storable, bestie, we know her). No cap, this whole thing is a Perl role that turns your KiokuDB entries into Storable bytes. Let's get into it π«Ά
πΈ NAME πΈ
KiokuDB::Backend::Serialize::Storable β the Storable-based serialization of KiokuDB::Entry objects. that's the whole vibe, that's the whole job π
β VERSION β
version 0.57
π SYNOPSIS π
here's the little teaser, exactly as the page gives it:
package MyBackend;
with qw(KiokuDB::Backend::Serialize::Storable;
she's short, she's sweet, she's doing her best β¨
π¦ DESCRIPTION π¦
so basically: this role hands you Storable-based serialization of KiokuDB::Entry objects for a backend, and it comes with streaming capabilities too. it's giving "plug me into your backend and I'll handle the bytes" π
lowkey important though: KiokuDB::Backend::Serialize::Delegate is the preferred way to go. using this one directly? it's allowed, but the page is gently telling you the Delegate is the main character here π
π METHODS π
here's the whole lineup, every single one, no skipping π«Ά
serialize $entryβ usesnstorein Storable. feeds your entry in and lets Storable do the thing.deserialize $blobβ usesthawin Storable. blob goes in, object comes out, iconic.serialize_to_stream $fh, $entryβ usesnstore_fdin Storable. same energy as serialize but streaming to a filehandle, that's the "streaming capabilities" from the description right there πdeserialize_from_stream $fhβ usesfd_retrievein Storable. reads it back off the filehandle. periodt.
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β shoutout, legend behavior π
π 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. slay, that's the good license π«Ά
okay that's the whole page bestie, we read every line, nothing skipped, you're welcome π
this was perl v5.34.0, dated 2022-05-23, and it's KiokuD...torable(3pm) forever in our hearts. 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