Cache::FileBackend man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

Cache::FileBackend(3) User Contributed Perl DocumentationCache::FileBackend(3)

NAME
       Cache::FileBackend -- a filesystem based persistance 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 direc-
	   tory, 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 v5.8.8			  2003-04-15		 Cache::FileBackend(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net