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::FILECACHE (3)

.ds Aq ’

NAME

Cache::FileCache -- implements the Cache interface.

CONTENTS

DESCRIPTION

The FileCache class implements the Cache interface. This cache stores data in the filesystem so that it can be shared between processes.

SYNOPSIS



  use Cache::FileCache;

  my $cache = new Cache::FileCache( { namespace => MyNamespace,
                                      default_expires_in => 600 } );

  See Cache::Cache for the usage synopsis.



METHODS

See Cache::Cache for the API documentation.
<B>Clear( [$cache_root] )B> See Cache::Cache, with the optional $cache_root parameter.
<B>Purge( [$cache_root] )B> See Cache::Cache, with the optional $cache_root parameter.
<B>Size( [$cache_root] )B> See Cache::Cache, with the optional $cache_root parameter.

OPTIONS

See Cache::Cache for standard options. Additionally, options are set by passing in a reference to a hash containing any of the following keys:
cache_root The location in the filesystem that will hold the root of the cache. Defaults to the ’FileCache’ under the OS default temp directory ( often ’/tmp’ on UNIXes ) unless explicitly set.
cache_depth The number of subdirectories deep to cache object item. This should be large enough that no cache directory has more than a few hundred objects. Defaults to 3 unless explicitly set.
directory_umask The directories in the cache on the filesystem should be globally writable to allow for multiple users. While this is a potential security concern, the actual cache entries are written with the user’s umask, thus reducing the risk of cache poisoning. If you desire it to only be user writable, set the ’directory_umask’ option to ’077’ or similar. Defaults to ’000’ unless explicitly set.

PROPERTIES

See Cache::Cache for default properties.
<B>(get|set)_cache_rootB> See the definition above for the option cache_root
<B>(get|set)_cache_depthB> See the definition above for the option cache_depth
<B>(get|set)_directory_umaskB> See the definition above for the option directory_umask

SEE ALSO

Cache::Cache

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::FILECACHE (3) 2015-01-22

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