use Cache::FileCache;
my $cache = new Cache::FileCache( { 'namespace' => 'MyNamespace',
'default_expires_in' => 600 } );
See Cache::Cache for the usage synopsis.
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.
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.
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.