# phpman > perldoc > Cache::Null

## NAME
    [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown) - Null implementation of the Cache interface

## SYNOPSIS
      use [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown);

      my $cache = [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown)->new();

    See Cache for the usage synopsis.

## DESCRIPTION
    The [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown) class implements the Cache interface, but does not actually persist data. This
    is useful when developing and debugging a system and you wish to easily turn off caching. As a
    result, all calls return results indicating that there is no data stored.

## CONSTRUCTOR
      my $cache = [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown)->new( %options )

    The constructor takes cache properties as named arguments, for example:

      my $cache = [Cache::Null](https://www.chedong.com/phpMan.php/perldoc/Cache%3A%3ANull/markdown)->new( default_expires => '600 sec' );

    See 'PROPERTIES' below and in the Cache documentation for a list of all available properties
    that can be set. However it should be noted that all the existing properties, such as
    default_expires, have no effect in a Null cache.

## METHODS
    See 'Cache' for the API documentation.

## SEE ALSO
    Cache

## AUTHOR
     Chris Leishman <<chris@leishman.org>>
     Based on work by DeWitt Clinton <<dewitt@unto.net>>

## COPYRIGHT
     Copyright (C) 2003-2006 Chris Leishman.  All Rights Reserved.

    This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed
    or implied. This program is free software; you can redistribute or modify it under the same
    terms as Perl itself.

    $Id: Null.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $

