info > Cache::FileCache

Cache::FileCache(3pm) User Contributed Perl DocumentationCache::FileCache(3pm)

📛 NAME

Cache::FileCache — implements the Cache interface.

🚀 Quick Reference

Use CaseCommandDescription
Create a new file cachemy $cache = new Cache::FileCache( { 'namespace' => 'MyNamespace', 'default_expires_in' => 600 } );Instantiate a shared filesystem cache with namespace and expiry
Set cache root$cache->set_cache_root('/path/to/cache')Override the filesystem root directory for the cache
Set cache depth$cache->set_cache_depth(4)Control subdirectory depth to spread objects across directories
Set directory umask$cache->set_directory_umask('077')Restrict permissions on cache directories (default: world-writable)

📖 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.

🔧 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:

📋 PROPERTIES

See Cache::Cache for default properties.

📚 SEE ALSO

Cache::Cache

✍️ AUTHOR

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

Last author: $Author: dclinton $

Copyright (C) 2001-2003 DeWitt Clinton

perl v5.20.2 2015-01-22 Cache::FileCache(3pm)

Cache::FileCache
📛 NAME 🚀 Quick Reference 📖 DESCRIPTION 🔧 SYNOPSIS ⚙️ METHODS 🔧 OPTIONS 📋 PROPERTIES 📚 SEE ALSO ✍️ AUTHOR

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:53 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!