Jason W. May > Data-Library-0.2 > Data::Library

Download:
Data-Library-0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.2   Source  

NAME ^

Data::Library - virtual class for repository support classes

SYNOPSIS ^

Data::Library provides a general repository service. Specifics are implemented in subclasses.

METHODS ^

new
  my $library = new Data::Library(...configuration...);

Configuration parameters are specific to subclasses.

new
  my $boolean = $library->lookup($tag);

Returns cached data items, by tag. If the source has changed since it was cached, returns false.

find
  my $data = $library->find($tag);

Searches for data item identified by $tag.

cache
  $library->cache($tag, $data);

Caches data by tag for later fetching via lookup().

toc
  my @array = $library->toc;

Search through the library and return a list of all available entries. Does not cache any of the items.

reset
  $library->reset;

Erase all entries from the cache.

syntax highlighting: