The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::XPP::Cache::Store::File - flatfile cache store

SYNOPSIS

...

REQUIRES

Apache::XPP::Cache::Store FileHandle File::stat

EXPORTS

Nothing

DESCRIPTION

Apache::XPP::Cache::Store::File handles the storing of data in flat file form on behalf of Apache::XPP::Cache.

METHODS

new ( $name, $group, \%instance_data, \$content )

Creates a new File store object. The contents of %instance_data will be placed in the object as instance data (for Apache request object, etc.).

location ( $name, $group )

Returns the fully qualified filename to the store file for the specified name/group pair. Files are stored by their $name in the directory $group. If the directory $group does not exist, it will be created with permissions of 0777 (use the umask function to change these permissions to more desirable ones).

cachedir ( )

Returns the directory in which file caches are stored.

content ( [ \$content ] )

Sets the store object's content to $content and returns TRUE. If $content is omitted, returns the content of the store object.

is_expired ( )

Removes the store file.

mtime ( )
mtime ( $name, $group )

Returns the modification time of the specified store.

REVISION HISTORY

 $Log: File.pm,v $
 Revision 1.7  2000/09/13 21:00:52  dougw
 Small change to line 165.

 Revision 1.6  2000/09/11 20:12:23  david
 Various minor code efficiency improvements.

 Revision 1.5  2000/09/07 19:01:57  dougw
 Pod fixin's

AUTHORS

Greg Williams <greg@cnation.com>

SEE ALSO

perl(1). Apache::XPP Apache::XPP:Cache