---
name: "Text::MicroMason::Cache::Null"
section: "3pm"
platform: "linux"
package: "libtext-micromason-perl"
version: "2.23-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Text::MicroMason::Cache::Null"
---

# Text::MicroMason::Cache::Null(3pm)

Trivial Cache with No Data Storage

## NAME

Text::MicroMason::Cache::Null - Trivial Cache with No Data Storage

## DESCRIPTION

This trivial cache class supports the cache interface but doesn't store or retrieve any values.

### Public Methods

- **new()**

  ```
    $cache = Text::MicroMason::Cache::Null->new();
  ```

- **get()**

  ```
    undef = $cache->get( $key );
  ```

  Does nothing.

- **set()**

  ```
    $cache->set( $key, $value );
  ```

  Returns the provided value.

- **clear()**

  ```
    $cache->clear();
  ```

  Does nothing.

## SEE ALSO

For uses of this cache class, see Text::MicroMason::ExecuteCache.

Additional cache classes are available in the Text::MicroMason::Cache:: namespace, or select other caching modules on CPAN that support the interface described in Cache::Cache.

For distribution, installation, support, copyright and license  information, see Text::MicroMason::Docs::ReadMe.
