CGI::Application::NetNewsIface::Cache::DBI - an internally used class to form a fast cache of the NNTP data.
use CGI::Application::NetNewsIface::Cache::DBI; my $cache = CGI::Application::NetNewsIface::Cache::DBI->new( { 'nntp' => $nntp, 'dsn' => "dbi:SQLite:dbname=foo.sqlite", }, );
Constructs a new cache object. Accepts a single argument - a hash ref with named parameters. Required parameters are:
A handle to the Net::NNTP object that will be used for querying the NNTP server.
The DBI 'dsn' for the DBI initialization.
Selects the newsgroup $group.
Retrieves the index of the message with the id $id.
$id
Gets the thread for the message indexed $index. Thread is:
$index
$thread looks like this:
$thread
{ 'idx' => $index, 'subject' => "Problem with Test::More", 'date' => $date, 'from' => "Shlomi Fish <shlomif@iglu.org.il>", 'subs' => [ { 'idx' => $index, . 'subs' => [ . . . ], } . . . ], }
$coords is the coordinates leading to the current article within the thread. To access the current article from the coords use:
$coords
$thread->{'subs'}->[$coords[0]]->{'subs'}->[$coords[1]]->...
Shlomi Fish, <shlomif@iglu.org.il>
<shlomif@iglu.org.il>
Please report any bugs or feature requests to bug-cgi-application-netnewsiface@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-NetNewsIface. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cgi-application-netnewsiface@rt.cpan.org
Copyright 2006 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT X11.
To install CGI::Application::NetNewsIface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Application::NetNewsIface
CPAN shell
perl -MCPAN -e shell install CGI::Application::NetNewsIface
For more information on module installation, please visit the detailed CPAN module installation guide.