NAME

Bric::App::ReqCache - Object for managing Application-wide global data.

VERSION

$Revision: 1.7 $

DATE

$Date: 2002/01/06 04:40:35 $

SYNOPSIS

use Bric::App::ReqCache;
my $rc = Bric::App::ReqCache->new;
$rc = $rc->set($key, $val);
my $val = $rc->get($key);

DESCRIPTION

This class offers simple caching of data for the length of an Apache request. It is cleaned out during the Apache Cleanup phase. If you need to cache data beyond the current request, use Bric::App::Cache or Bric::App::Session.

INTERFACE

Constructors

my $rc = Bric::App::ReqCache->new()

Instantiates a Bric::App::ReqCache object. No initial values may be passed.

Throws:

Side Effects: NONE.

Notes: NONE.

my $org = Bric::App::ReqCache->lookup()

Not implemented - not needed.

Throws:

Side Effects: NONE.

Notes: NONE.

Bric::App::ReqCache->list()

Not implemented - not needed.

Throws:

Side Effects: NONE.

Notes: NONE.

Destructors

$org->DESTROY

Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Class Methods

Bric::App::ReqCache->list_ids()

Not implemented - not needed.

Throws:

Side Effects: NONE.

Notes: NONE.

Public Instance Methods

my $val = $rc->get($key)

Returns a value for the specified key. Call $rc->set($key, $value) to store a value.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $rc->set($key, $value);

Stores $value as referenced by $key. Call $rc->get($key) to retrieve $value.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

$self = $rc->clear()
Bric::App::ReqCache->clear()

Clears the cache of all its values. Called during the Apache cleanup phase.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

my %req_cache = $rc->get_all()

Returns a hash list of all the values currently in the cache.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

PRIVATE

Private Class Methods

NONE.

Private Instance Methods

NONE.

Private Functions

NONE.

NOTES

NONE.

AUTHOR

David Wheeler <david@wheeler.net>

SEE ALSO

Bric, Bric::App::Cache, Bric::App::Session, Apache::Session

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 166:

=back doesn't take any parameters, but you said =back 4

Around line 192:

'=item' outside of any '=over'

Around line 292:

=back doesn't take any parameters, but you said =back 4

Around line 313:

=back without =over