CHI::Driver::BerkeleyDB -- Using BerkeleyDB for cache
use CHI; my $cache = CHI->new( driver => 'BerkeleyDB', root_dir => '/path/to/cache/root' );
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.
Path to the directory that will contain the Berkeley DB environment, also known as the "Home".
BerkeleyDB class, defaults to BerkeleyDB::Hash.
Use this Berkeley DB environment instead of creating one.
Use this Berkeley DB object instead of creating one.
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
Jonathan Swartz
CHI, BerkeleyDB
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.
To install CHI::Driver::BerkeleyDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CHI::Driver::BerkeleyDB
CPAN shell
perl -MCPAN -e shell install CHI::Driver::BerkeleyDB
For more information on module installation, please visit the detailed CPAN module installation guide.