DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Flushable.3pm.en
Catmandu::Flushable(3pm) User Contributed Perl Documentation Catmandu::Flushable(3pm)

Catmandu::Flushable - Optional role for flushable bags

"flush" makes sure that data added get persisted to disk for stores that support this operation (e.g. Elasticsearch).

This role also installs a hook that calls "flush" on "commit".

    $store->bag->flush;

Flush the bag.

2023-03-03 perl v5.36.0