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

KiokuDB::GC::Naive - Naive mark and sweep garbage collection

SYNOPSIS

    use KiokuDB::GC::Naive;

    my $gc = KiokuDB::GC::Naive->new(
        backend => $backend,
    );

    $backend->delete( $gc->garbage->members );

DESCRIPTION

This class implements full mark and sweep garbage collection for a backend supporting KiokuDB::Backend::Role::Scan.