NAME
Posy::Plugin::Cache::File - Filesystem-based cache for Posy plugins
VERSION
This document describes Posy::Plugin::Cache::File version 0.1.
SYNOPSIS
This module is available for internal use by other Posy plugins.
my $cache = Posy::Plugin::Cache::File->new(
cache_root => '/some/path',
default_expires => '1w',
lock_level => Cache::File::LOCK_LOCAL
);
$cache->put($key, $value);
my $value = $cache->get($key);
DESCRIPTION
This module provides a filesytem-based cache (using Cache::File) that can be used internally by other Posy plugins to cache data to disk.
INTERFACE
new()
my $cache = Posy::Plugin::Cache::File->new(
cache_root => '/some/path',
default_expires => '1w',
lock_level => Cache::File::LOCK_LOCAL
);
Create a new filesystem-based with the specified arguments.
get()
my $value = $cache->get($key);
Retrieve a value from the cache.
set()
$cache->set($key, $value);
Insert a value into the cache.
SEE ALSO
TODO
Add Posy::Plugin::Log4perl support
Expose more Cache::File capabilities
BUGS AND LIMITATIONS
Please report any bugs or feature requests to bug-Posy-Plugin-Cache-File@rt.cpan.org
or through the web interface at http://rt.cpan.org.
AUTHOR
blair christensen., <blair@devclue.com>
<http://devclue.com/blog/code/posy/Posy::Plugin::Cache::File/>
COPYRIGHT AND LICENSE
Copyright 2005 by blair christensen.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.