File(3)

πŸ“¦
version 3.15 Β· 2 versions
, in fedora 43

✨ NAME ✨

QWizard::Storage::File β€” bestie, this one stores your data in a file πŸ’Ύβœ¨ (it's from File(3), the Perl user-contributed manual pages, in case you were wondering where you wandered into 🧚)


🌸 SYNOPSIS 🌸

my $st = new QWizard::Storage::File(file => '/path/to/some/file');
$st->set('var', 'value');
$st->get('var');

# optionally bootstrap from an existing file:
$st->load_data();

πŸ’… DESCRIPTION πŸ’…

Okay so picture this: you hand it data, and it puts that data in a file. And also keeps it in memory, because lookups gotta be fast, obviously πŸƒβ™€οΈπŸ’¨

But ngl, generally speaking you should not be using this one β€” except in the very specific case where something else is copying into it from a faster storage mechanism (like a QWizard::Storage::Memory object, for example). It's giving backup-singer energy, not main character. 🎀

And the tea β˜•: this module is actually a child class of QWizard::Storage::Memory. So yeah, it inherited the good genes. 🧬


πŸ‘‘ AUTHOR πŸ‘‘

Wes Hardaker, hardaker@users.sourceforge.net β€” thank you for your service, king 🫢


πŸ¦‹ SEE ALSO πŸ¦‹


And that's the whole vibe check, bestie πŸ’œ this was perl v5.42.0, dated 2025-07-25, from the File(3) page β€” go forth and store responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from