The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Distribution::Metadata::Factory - create Distribution::Metadata objects with cache

SYNOPSIS

    use Distribution::Metadata::Factory;

    my $factory = Distribution::Metadata::Factory->new(inc => \@INC);

    my $info1 = $factory->create_from_module("Moose");
    my $info2 = $factory->create_from_module("Plack");
    my $info3 = $factory->create_from_file("/path/to/Moo.pm");

DESCRIPTION

This module creates Distribution::Metadata objects with cache.

If you creates many Distribution::Metadata objects, then it may take quite a lot of time. This is because Distribution::Metadata->new scans @INC directories, parses packlist files, and parses install.json files many times.

Distribution::Metadata::Factory caches such results, so you can create Distribution::Metadata objects even faster.

LICENSE

Copyright (C) 2015 Shoichi Kaji

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Shoichi Kaji <skaji@cpan.org>