Distribution::Metadata::Factory - create Distribution::Metadata objects with cache
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");
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->new
@INC
Distribution::Metadata::Factory caches such results, so you can create Distribution::Metadata objects even faster.
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.
Shoichi Kaji <skaji@cpan.org>
To install Distribution::Metadata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Distribution::Metadata
CPAN shell
perl -MCPAN -e shell install Distribution::Metadata
For more information on module installation, please visit the detailed CPAN module installation guide.