Cache::RepositoryCache::Repository is a Perl module used to cache generic repository of files. | |
Download |
Cache::Repository Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Darin McBride
- Publisher web site:
- http://search.cpan.org/~dmcbride/
Cache::Repository Tags
Cache::Repository Description
Cache::Repository is a Perl module used to cache generic repository of files. Cache::Repository is a Perl module used to cache generic file repository.SYNOPSIS my $rep = Cache::Repository->new( style => 'Filesys', # options for the F::R driver ); $rep->add_files(tag => 'groupname', files => @filenames, basedir => '/tmp', move => 1, ); $rep->add_filehandle(tag => 'anothergroup', filename => 'blah', filehandle => $fh, mode => 0755); $rep->set_meta(tag => 'groupname', meta => { title => 'blah', author => 'foo', }); $rep->retrieve(tag => 'groupname', dest => '/newdir'); my $data = $rep->get_meta(tag => 'groupname');This module is intended to serve as a repository for files, whether those files are local or remote. Different drivers can work independantly to provide differing backing stores. For example, one driver can use a locally-mounted filesystem (even if that is a network filesystem), another could use FTP or HTTP, another could use gmail, and another could use a relational database such as MySQL or DB2.Drivers may choose to compress the repository, unless explicitly told otherwise.Keeping this in mind, the API presented here cannot expose things that are not generic to other possible implementations. That said, some possible implementations may not allow adding ("sending" to a web server) - it is expected that they will either throw an exception, or take extra params for FTP'ing to the server. Requirements: · Perl
Cache::Repository Related Software