16 Jun 2018 17:07:12 UTC
- Distribution: CHI-Driver-BerkeleyDB
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (163 / 0 / 0)
- KwaliteeBus factor: 3
- % Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (13.21KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMSCHOUT Michael Schout
- CONSTRUCTOR OPTIONS
- SEE ALSO
- COPYRIGHT AND LICENSE
CHI::Driver::BerkeleyDB - BerkeleyDB Cache Driver for CHI
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.
root_dir: string [required]
Path to the directory that will contain the Berkeley DB environment, also known as the "Home".
BerkeleyDB class, defaults to
The mode to use when creating the database directory if it does not exist. Defaults to
Use this Berkeley DB environment instead of creating one.
db: BerkeleyDB object
Use this Berkeley DB object instead of creating one.
Originally created by Jonathan Swartz. Version 0.04 and later maintained by Michael Schout.
The development version is on github at https://https://github.com/mschout/perl-chi-driver-bdb and may be cloned from git://https://github.com/mschout/perl-chi-driver-bdb.git
Please report any bugs or feature requests on the bugtracker website https://github.com/mschout/perl-chi-driver-bdb/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Michael Schout <email@example.com>
This software is copyright (c) 2009 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install CHI::Driver::BerkeleyDB, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install CHI::Driver::BerkeleyDB
For more information on module installation, please visit the detailed CPAN module installation guide.