Catman...ushable(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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