NAME

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

VERSION

$Revision: 1.2.2.4 $

DATE

$Date: 2001/11/06 23:18:32 $

SYNOPSIS

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

my $time = $c->get_lmu_time;
$c = $c->set_lmu_time;

DESCRIPTION

This module uses a Cache::FileCache object to cache data that needs to persist across all processes and across all requests, through time and space.

INTERFACE

Constructors

my $c = Bric::App::Cache->new()

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

Throws:

Side Effects: NONE.

Notes: NONE.

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

Not implemented - not needed.

Throws:

Side Effects: NONE.

Notes: NONE.

Bric::App::Cache->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::Cache->list_ids()

Not implemented - not needed.

Throws:

Side Effects: NONE.

Notes: NONE.

Public Instance Methods

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

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

Throws:

Side Effects: NONE.

Notes: NONE.

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

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

Throws:

Side Effects: NONE.

Notes: NONE.

my $lmu_time = $c->get_lmu_time

Returns the epoch time when a user object was last modified.

Throws:

Side Effects: NONE.

Notes: NONE.

$self = $c->set_lmu_time($lmu_time)

Sets the epoch time when a user object was last modified.

Throws:

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

perl(1), Bric (2), Bric::App::Session(3), Apache::Session(4)

POD ERRORS

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

Around line 180:

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

Around line 206:

'=item' outside of any '=over'

Around line 348:

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

Around line 369:

=back without =over