Email::Fingerprint::Cache::AnyDBM - AnyDBM backend for Email::Fingerprint::Cache
Version 0.01
use Email::Fingerprint::Cache; my $foo = Email::Fingerprint::Cache->new({ backend => 'AnyDBM', }); ...
You never want to use this class directly; you always want to access it through Email::Fingerpint::Cache.
$cache = new Email::Fingerprint::Cache::AnyDBM({ file => $filename, # Mandatory });
Method created automatically by Class::Std.
Class::Std
Internal helper method; never called directly by users.
$cache->open or die;
Open the associated file, and tie it to our hash. This method does not lock the file, nor unlock it on failure. See lock and unlock.
lock
unlock
Unties the hash, which causes the underlying DB file to be written and closed.
Returns true if the cache is open; false otherwise.
Returns true if the cache is locked; false otherwise.
$cache->lock or die; # returns immediately $cache->lock( block => 1 ) or die; # Waits for a lock
Lock the DB file. Returns false on failure, true on success.
$cache->unlock or cluck "Unlock failed";
Unlocks the DB file. Returns false on failure, true on success.
Returns a reference to the hash which is tied to the backend storage.
Len Budney, <lbudney at pobox.com>
<lbudney at pobox.com>
Please report any bugs or feature requests to bug-email-fingerprint at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Email-Fingerprint. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-email-fingerprint at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Email::Fingerprint::Cache::AnyDBM
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Email-Fingerprint
CPAN Ratings
http://cpanratings.perl.org/d/Email-Fingerprint
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Email-Fingerprint
Search CPAN
http://search.cpan.org/dist/Email-Fingerprint
Email::Fingerprint::Cache is based on caching code in the eliminate_dups script by Peter Samuel and available at http://www.qmail.org/.
eliminate_dups
Copyright 2006-2011 Len Budney, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Email::Fingerprint, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Fingerprint
CPAN shell
perl -MCPAN -e shell install Email::Fingerprint
For more information on module installation, please visit the detailed CPAN module installation guide.