NAME
CHI::Driver::BerkeleyDB -- Using BerkeleyDB for cache
SYNOPSIS
use CHI;
my $cache = CHI->new(
driver => 'BerkeleyDB',
root_dir => '/path/to/cache/root'
);
DESCRIPTION
This cache driver uses Berkeley DB files to store data. Each namespace is stored in its own db file.
By default, the driver configures the Berkeley DB environment to use the Concurrent Data Store (CDS), making it safe for multiple processes to read and write the cache without explicit locking.
CONSTRUCTOR OPTIONS
- root_dir
-
Path to the directory that will contain the Berkeley DB environment, also known as the "Home".
- db_class
-
BerkeleyDB class, defaults to BerkeleyDB::Hash.
- env
-
Use this Berkeley DB environment instead of creating one.
- db
-
Use this Berkeley DB object instead of creating one.
SUPPORT AND DOCUMENTATION
Questions and feedback are welcome, and should be directed to the perl-cache mailing list:
http://groups.google.com/group/perl-cache-discuss
Bugs and feature requests will be tracked at RT:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=CHI-Driver-BerkeleyDB
The latest source code can be browsed and fetched at:
http://github.com/jonswar/perl-chi-driver-bdb/tree/master
git clone git://github.com/jonswar/perl-chi-driver-bdb.git
AUTHOR
Jonathan Swartz
SEE ALSO
COPYRIGHT & LICENSE
Copyright (C) 2007 Jonathan Swartz.
CHI::Driver::BerkeleyDB is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.