The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catmandu::Flushable - Optional role for flushable bags

DESCRIPTION

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.

SYNOPSIS

    $store->bag->flush;

METHODS

flush

Flush the bag.