Catman...ushable(3pm)
π Catmandu::Flushable β the optional role for flushable bags π
okay bestie so real quick, this is from the User Contributed Perl Documentation section, manual name 3pm, and it's literally the tiniest role you've ever met but she's so important π«Ά
β¨ NAME β¨
Catmandu::Flushable β the optional role for flushable bags πβ¨
π DESCRIPTION π
so flush is the method that makes sure the data you added actually gets persisted to disk β but only for stores that support that operation. like, e.g. Elasticsearch. some stores just vibe and hold onto your stuff, but the flushable ones will actually write it down, no cap π§
this role also installs a hook that calls flush on commit. so when you commit, she flushes. automatically. the way she just handles it for you?? main character energy fr fr π
πΈ SYNOPSIS πΈ
$store->bag->flush;
that's it. that's the whole thing. iconic. π
π¦ METHODS π¦
flush β flush the bag π¦
flush the bag. periodt. β¨
ngl if a store doesn't support flushing, this role isn't for them and that's okay, we don't force the vibe π
okay that's the whole page, bestie β this was perl v5.40.1, dated 2026-01-24, and yes she's short but she ate π
πΈβ¨
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms