NAME
Data::Downloader::Cache
SYNOPSIS
my $cache = Data::Downloader::Cache::LRU->new(repository => <repository>);
$cache->purge if $cache->needs_purge;
DESCRIPTION
This is the base class for caching algorithms.
A Data::Downloader::Cache acts on a repository; a repository uses a particular cache algorithm. The cache algorithm is then responsible for determining which files have expired, and purging them as necessary.
METHODS
- repository
 - 
Get or set the repository (a DD::Repository object)
 - purge
 - 
Purge all expired files for a repository.
 - needs_purge
 - 
Does the cache for this repository need to be purged?
 - find_expired_files
 - 
Find all the files which are expired, and may be purged.
Returns a list of DD::File objects.