BBC (British Broadcasting Corporation) > Cache-AgainstFile > Cache::AgainstFile::Null

Download:
Cache-AgainstFile-1.016.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.005   Source  

NAME ^

Cache::AgainstFile::Null - backend for Cache::AgainstFile to disable caching

SYNOPSIS ^

        my $cache = new Cache::AgainstFile(
                \&loader, 
                {
                        Method => 'Null',
                        ...
                }
        );

        $data = $cache->get($filename);

DESCRIPTION ^

This implementation simply calls the cache loader each time get() is called, thus no caching is done. It is useful for testing when you want to quickly disable caching by flipping the Method passed to Cache::AgainstFile.

OPTIONS ^

There are no additional options for this backend

VERSION ^

$Revision: 1.5 $ on $Date: 2005/05/26 15:52:19 $ by $Author: simonf $

AUTHOR ^

John Alden <cpan _at_ bbc _dot_ co _dot_ uk>

COPYRIGHT ^

(c) BBC 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL.

See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt

syntax highlighting: