NAME
File::Properties::PropsCache - Perl module implementing a cache for disk file properties
SYNOPSIS
my
$fpc
= File::Properties::PropsCache->new(
'cache.db'
);
my
$fp
=
$fpc
->properties(
'/path/to/file'
);
"File properties:\n"
.
$fp
->string .
"\n"
;
ABSTRACT
File::Properties::PropsCache is a Perl module implementing a cache
for
disk file properties.
DESCRIPTION
File::Properties::PropsCache is a Perl module implementing a cache
for
disk file properties. Its only purpose is to provide an
alternative interface
for
cache creation and construction
for
the
File::Properties class.
- new
-
my
$opts
= {
'CachedPath'
=> 1};
my
$fpc
= File::Properties::PropsCache->new(
$path
,
$opts
);
Constructs a new File::Properties::PropsCache object.
- properties
-
my
$fp
=
$fpc
->properties(
$path
);
print
"Properties of $path:\n"
.
$fp
->string .
"\n"
;
Construct the File::Properties object for the file at $path.
SEE ALSO
File::Properties, File::Properties::Cache
AUTHOR
Brendt Wohlberg <wohl@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2010,2011 by Brendt Wohlberg
This library is available under the terms of the GNU General Public License (GPL), described in the LICENSE file included in this distribution.