GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CACHE::FILEBACKEND (3)

.ds Aq ’

NAME

Cache::FileBackend -- a filesystem based persistence mechanism

CONTENTS

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.
<B>new( B>$root<B>, B>$depth<B>, B>$directory_umask<B> )B> 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

<B>(get|set)_rootB> The location of the parent directory in which to store the files
<B>(get|set)_depthB> The branching factor of the subdirectories created to store the files
<B>(get|set)_directory_umaskB> 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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CACHE::FILEBACKEND (3) 2015-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.