PAR::Repository::Web::Model::Repository - Catalyst Model for a PAR::Repository
See PAR::Repository::Web
Catalyst Model.
Returns the repository configuration from the YAML configuration file.
Corresponds to PAR::Repository::Query's query_dist method, but adds a layer of indirection to be able to add caching.
PAR::Repository::Query
query_dist
First argument should be the Model object, second should be the alias of the repository to be queried. These should be followed by any parameters to the repositories query method.
Corresponds to PAR::Repository::Query's query_module method, but adds a layer of indirection to be able to add caching.
query_module
Corresponds to PAR::Repository::Query's query_script method, but adds a layer of indirection to be able to add caching.
query_script
Corresponds to PAR::Repository::Query's query_script_hash method, but adds a layer of indirection to be able to add caching.
query_script_hash
Returns a hash ref containing repository aliases and PAR::Repository::Client objects.
PAR::Repository::Client
You shouldn't usually use this method directly for querying the repository. Use the query_* methods documented below. That enables you to use a cache-enabled data source.
query_*
Returns a single repository object identified by the repository alias which must be passed in as first argument.
You shouldn't usually use this method directly for querying the repository. Use the query_* methods documented below. That enables you to swap in a subclass of this model which can do caching.
Copyright 2006-2008 by Steffen Mueller <smueller@cpan.org>
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install PAR::Repository::Web, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PAR::Repository::Web
CPAN shell
perl -MCPAN -e shell install PAR::Repository::Web
For more information on module installation, please visit the detailed CPAN module installation guide.