NAME
OpenInteract2::Cache::File -- Implement caching in the filesystem
DESCRIPTION
Subclass of OpenInteract2::Cache that uses the filesystem to cache objects.
METHODS
initialize( \%config )
Creates a new Cache::FileCache object for later use, initializing it with the values from \%config
-- this corresponds to the data under cache
in your server configuration. Here's what you can set:
directory (required)
Root directory of cache. Must be writable by the user who owns the server process.
max_size (optional)
Max size of the cache, in bytes. (Default: 2000000 about 10MB)
default_expire (optional)
Number of seconds the cached item should be valid. (Default: 86400, or one day)
directory_depth (optional)
If you cache a lot of content set this to '2' or '3' so the cache doesn't create too many files in a single directory, which can foul up some filesystems.
COPYRIGHT
Copyright (c) 2001-2004 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Chris Winters <chris@cwinters.com>