logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

CPAN::Common::Index::Mux::Ordered - Consult indices in order and return the first result

Attributes

resolvers
           An array reference of CPAN::Common::Index::* objects

Author

       David Golden <dagolden@cpan.org>

Description

       This module multiplexes multiple CPAN::Common::Index objects, returning results in order.

       For exact match queries, the first result is returned. For search queries, results from each index object
       are concatenated.

Methods

assemble
           $index = CPAN::Common::Index::Mux::Ordered->assemble(
               MetaDB => {},
               Mirror => { mirror => "http://www.cpan.org" },
           );

       This class method provides a shorthand for constructing a multiplexer.  The arguments must be pairs of
       subclass suffixes and arguments.  For example, "MetaDB" means to use "CPAN::Common::Index::MetaDB".
       Empty arguments must be given as an empty hash reference.

Name

       CPAN::Common::Index::Mux::Ordered - Consult indices in order and return the first result

Synopsis

           use CPAN::Common::Index::Mux::Ordered;
           use Data::Dumper;

           $index = CPAN::Common::Index::Mux::Ordered->assemble(
               MetaDB => {},
               Mirror => { mirror => "http://cpan.cpantesters.org" },
           );

Version

       version 0.010

See Also