">

NAME

Lintian::Storage::PerMember - store multi-level hashes on disk

SYNOPSIS

    use Lintian::Storage::PerMember;

    my $storage = Lintian::Storage::PerMember->create('elf');
    my $name = 'usr/bin/true';
    $storage->{$name} = { NEEDED => ['libc.so.6'] };
    my $info = $storage->{$name};

DESCRIPTION

Lintian::Storage::PerMember provides an interface to store data on disk to preserve memory. Each hash key corresponds to a separate Storable file in a temporary directory, so values are only in memory while they are being read or written.

CLASS METHODS

create

Creates a temporary directory and returns a hash tied to it. Each assigned key is stored in its own file there.

INSTANCE METHODS

TIEHASH
STORE
FETCH
EXISTS
DELETE
CLEAR
FIRSTKEY
NEXTKEY
DESTROY

Removes the temporary directory when the tied hash goes out of scope.

_file

Returns the file associated with the given key.

SEE ALSO

lintian(1)

<<