Data::Library - virtual class for repository support classes
Data::Library provides a general repository service. Specifics are implemented in subclasses.
my $library = new Data::Library(...configuration...);
Configuration parameters are specific to subclasses.
my $boolean = $library->lookup($tag);
Returns cached data items, by tag. If the source has changed since it was cached, returns false.
my $data = $library->find($tag);
Searches for data item identified by $tag.
$library->cache($tag, $data);
Caches data by tag for later fetching via lookup().
my @array = $library->toc;
Search through the library and return a list of all available entries. Does not cache any of the items.
$library->reset;
Erase all entries from the cache.
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install Data::Library, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Library
CPAN shell
perl -MCPAN -e shell install Data::Library
For more information on module installation, please visit the detailed CPAN module installation guide.