DBI::Util::CacheMemory(3) User Contributed Perl Documentation DBI::Util::CacheMemory(3)

# [NAME](#NAME)

DBI::Util::CacheMemory - a very fast but very minimal subset of Cache::Memory

# [DESCRIPTION](#DESCRIPTION)

Like Cache::Memory (part of the Cache distribution) but doesn't support any fancy features.

This module aims to be a very fast compatible strict sub-set for simple cases, such as basic client-side caching for DBD::Gofer.

Like Cache::Memory, and other caches in the Cache and Cache::Cache distributions, the data will remain in the cache until cleared, it expires, or the process dies. The cache object simply going out of scope will *not* destroy the data.

# [METHODS WITH CHANGES](#METHODS_WITH_CHANGES)

## [new](#new)

All options except "namespace" are ignored.

## [set](#set)

Doesn't support expiry.

## [purge](#purge)

Same as **clear()** - deletes everything in the namespace.

# [METHODS WITHOUT CHANGES](#METHODS_WITHOUT_CHANGES)

[clear](#clear)

[count](#count)

[exists](#exists)

[remove](#remove)

# [UNSUPPORTED METHODS](#UNSUPPORTED_METHODS)

If it's not listed above, it's not supported.

2026-10-18 perl v5.44.0

---

Document: DBI::Util::CacheMemory(3pm) from perl-dbi 1.656-r0 (Chainguard OS)
Source: https://github.com/perl5-dbi/dbi
