added exceptions, docs, and removed disableCache

This commit is contained in:
JT Smith 2009-09-25 18:41:03 -05:00
parent a34f584780
commit af705232a8
7 changed files with 224 additions and 107 deletions

View file

@ -118,7 +118,6 @@ sub get {
my $self = shift;
my $var = shift;
my $opt = shift || {};
return undef if $self->session->config->get("disableCache");
my $value = $self->{_data}{$var};
return undef unless defined $value;
my $ref = ref $value;
@ -190,8 +189,6 @@ The value of the stow variable. Any scalar or reference.
sub set {
my $self = shift;
$self->session->errorHandler->debug('Stow->set() is being called but cache has been disabled')
if $self->session->config->get("disableCache");
my $name = shift;
my $value = shift;
return undef unless ($name);