PHPackages                             mouf/utils.cache.in-memory-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. mouf/utils.cache.in-memory-cache

ActiveMouf-library[Caching](/categories/caching)

mouf/utils.cache.in-memory-cache
================================

This package contains the most basic cache mechanism. It stores cache items in an array. It means the cache is flushed as soon as the script returns. It is very basic, but also very fast. You will usually use this mechanism with another one just behind.

v1.0.2(10y ago)1360.9k↓68.1%11MITPHPPHP &gt;=5.3.0

Since Oct 29Pushed 10y ago10 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.cache.in-memory-cache)[ Packagist](https://packagist.org/packages/mouf/utils.cache.in-memory-cache)[ Docs](https://mouf-php/packages/mouf/utils.cache.local-cache)[ RSS](/packages/mouf-utilscachein-memory-cache/feed)WikiDiscussions 1.0 Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

Mouf local cache service
========================

[](#mouf-local-cache-service)

This package contains the most basic implementation of Mouf's CacheInterface. It stores cache items in an in-memory array. It means the cache is flushed as soon as the script returns. It is very basic, but also very fast. You will usually use this mechanism with another one just behind. To learn more about the cache interface, please see the [cache system documentation](http://mouf-php.com/packages/mouf/utils.cache.cache-interface).

Compared to Mouf's other cache implementations, the local cache system comes with an additional feature: *a chaining mechanism*.

In practice, you would put the in-memory cache in front of another cache. If your application queries several times the same key in the same script, it will be available in-memory and the cache system will not be queried (hence a faster result).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~206 days

Total

4

Last Release

4012d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (5 commits)")

---

Tags

cachemoufIn Memory

### Embed Badge

![Health badge](/badges/mouf-utilscachein-memory-cache/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-utilscachein-memory-cache/health.svg)](https://phpackages.com/packages/mouf-utilscachein-memory-cache)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k772.9M2.7k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k726.4M1.7k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

445131.2M46](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2515.9M12](/packages/beste-in-memory-cache)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23617.1k1](/packages/rtcamp-nginx-helper)[bnomei/kirby3-redis-cachedriver

Advanced Redis cache-driver with in-memory store, transactions and preloading

101.9k](/packages/bnomei-kirby3-redis-cachedriver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
