CPAN::Common::Index::Mux::Ordered - Consult indices in order and return the first result
Contents
Attributes
resolvers
An array reference of CPAN::Common::Index::* objects
Copyright And License
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
perl v5.36.0 2022-12-09 CPAN::Common::Index::Mux::Ordered(3pm)
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
