10 |
|
# Copyright: 2003 (C) Shaun Ashby |
11 |
|
# |
12 |
|
#-------------------------------------------------------------------- |
13 |
+ |
|
14 |
+ |
=head1 NAME |
15 |
+ |
|
16 |
+ |
Cache::Cache - A generic directory cache object. |
17 |
+ |
|
18 |
+ |
=head1 SYNOPSIS |
19 |
+ |
|
20 |
+ |
my $obj = Cache::Cache->new(); |
21 |
+ |
|
22 |
+ |
=head1 DESCRIPTION |
23 |
+ |
|
24 |
+ |
A package to provide caching of directory information. Directory timestamps |
25 |
+ |
are tracked on further reading of an existing cache and lists of modified |
26 |
+ |
directories and BuildFiles can be obtained. |
27 |
+ |
|
28 |
+ |
=head1 METHODS |
29 |
+ |
|
30 |
+ |
=over |
31 |
+ |
|
32 |
+ |
=cut |
33 |
+ |
|
34 |
|
package Cache::Cache; |
35 |
|
require 5.004; |
36 |
|
|
37 |
|
use Exporter; |
38 |
|
@ISA=qw(Exporter); |
39 |
|
# |
40 |
+ |
|
41 |
+ |
=item C<new()> |
42 |
+ |
|
43 |
+ |
Create a new Cache::Cache object. The name of the cache is B<DirCache.db> by default. |
44 |
+ |
|
45 |
+ |
=cut |
46 |
+ |
|
47 |
|
sub new() |
48 |
|
############################################################### |
49 |
|
# new # |
70 |
|
return $self; |
71 |
|
} |
72 |
|
|
73 |
+ |
=item C<getdir($path)> |
74 |
+ |
|
75 |
+ |
|
76 |
+ |
|
77 |
+ |
=cut |
78 |
+ |
|
79 |
|
sub getdir() |
80 |
|
{ |
81 |
|
my $self=shift; |
519 |
|
} |
520 |
|
|
521 |
|
1; |
522 |
+ |
|
523 |
+ |
=back |
524 |
+ |
|
525 |
+ |
=head1 AUTHOR |
526 |
+ |
|
527 |
+ |
Shaun Ashby (with contribution from Lassi Tuura) |
528 |
+ |
|
529 |
+ |
=head1 MAINTAINER |
530 |
+ |
|
531 |
+ |
Shaun Ashby |
532 |
+ |
|
533 |
+ |
=cut |
534 |
+ |
|