NAME

Text::Same::Cache

DESCRIPTION

A (planned) cache of ChunkedSource objects. For now there is just one method: get(), which returns a ChunkedSource object for a particular file.

SYNOPSIS

my $cache = new Text::Same::Cache(); my $chunked_source = $cache->get($file);

METHODS

See below. Methods private to this module are prefixed by an underscore.

new

Title   : new
Usage   : $cache = new Text::Same::Cache();
Function: return a new, empty cache

get

Title   : get
Usage   : my $chunked_source = $cache->get($file);
Function: return a ChunkedSource object for the given file, possibly getting
          the ChunkedSource details from a cache

AUTHOR

Kim Rutherford <kmr+same@xenu.org.uk>

COPYRIGHT & LICENSE

Copyright 2005,2006 Kim Rutherford. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

DISCLAIMER

This module is provided "as is" without warranty of any kind. It may redistributed under the same conditions as Perl itself.