Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Cache::FileBackend

Name Cache::FileBackend
Version
Located at /usr/share/perl5
File /usr/share/perl5/Cache/FileBackend.pm
Is Core No
Search CPAN for this module Cache::FileBackend
Documentation Cache::FileBackend
Module Details Cache::FileBackend


NAME

Cache::FileBackend -- a filesystem based persistence mechanism


DESCRIPTION

The FileBackend class is used to persist data to the filesystem


SYNOPSIS

  my $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 );
  See Cache::Backend for the usage synopsis.
  $backend->store( 'namespace', 'foo', 'bar' );
  my $bar = $backend->restore( 'namespace', 'foo' );
  my $size_of_bar = $backend->get_size( 'namespace', 'foo' );
  foreach my $key ( $backend->get_keys( 'namespace' ) )
  {
    $backend->delete_key( 'namespace', $key );
  }
  foreach my $namespace ( $backend->get_namespaces( ) )
  {
    $backend->delete_namespace( $namespace );
  }


METHODS

See Cache::Backend for the API documentation.

new( $root, $depth, $directory_umask )
Construct a new FileBackend that writes data to the $root directory, automatically creates subdirectories $depth levels deep, and uses the umask of $directory_umask when creating directories.


PROPERTIES

(get|set)_root
The location of the parent directory in which to store the files

(get|set)_depth
The branching factor of the subdirectories created to store the files

(get|set)_directory_umask
The umask to be used when creating directories


SEE ALSO

Cache::Backend, Cache::MemoryBackend, Cache::SharedMemoryBackend


AUTHOR

Original author: DeWitt Clinton <dewitt@unto.net>

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026