CHI::Driver::Null - Nothing is cached


CHI documentation Contained in the CHI distribution.

Index


Code Index:

NAME

Top

CHI::Driver::Null - Nothing is cached

VERSION

Top

version 0.49

SYNOPSIS

Top

    use CHI;

    my $cache = CHI->new(driver => 'Null');
    $cache->set('key', 5);
    my $value = $cache->get('key');   # returns undef

DESCRIPTION

Top

This cache driver implements the full CHI interface without ever actually storing items. Useful for disabling caching in an application, for example.

SEE ALSO

Top

CHI

AUTHOR

Top

Jonathan Swartz <swartz@pobox.com>

COPYRIGHT AND LICENSE

Top


CHI documentation Contained in the CHI distribution.

package CHI::Driver::Null;
BEGIN {
  $CHI::Driver::Null::VERSION = '0.49';
}
use Moose;
use strict;
use warnings;

extends 'CHI::Driver';
__PACKAGE__->meta->make_immutable();

sub fetch          { undef }
sub store          { undef }
sub remove         { undef }
sub clear          { undef }
sub get_keys       { return () }
sub get_namespaces { return () }

1;




__END__