PHPackages                             cache/array-adapter - 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. cache/array-adapter

ActiveLibrary[Caching](/categories/caching)

cache/array-adapter
===================

A PSR-6 cache implementation using a php array. This implementation supports tags

1.2.0(4y ago)548.3M—7.1%14[1 PRs](https://github.com/php-cache/array-adapter/pulls)20MITPHPPHP &gt;=7.4

Since Jan 6Pushed 2y ago3 watchersCompare

[ Source](https://github.com/php-cache/array-adapter)[ Packagist](https://packagist.org/packages/cache/array-adapter)[ Docs](http://www.php-cache.com/en/latest/)[ RSS](/packages/cache-array-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (13)Used By (20)

Array PSR-6 Cache pool
======================

[](#array-psr-6-cache-pool)

[![Gitter](https://camo.githubusercontent.com/2ded3ed1778dcfc9af5e2dfaad55e176ade49082cb6ea757169cc5ea23bf32ac/68747470733a2f2f6261646765732e6769747465722e696d2f7068702d63616368652f63616368652e737667)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![Latest Stable Version](https://camo.githubusercontent.com/dc6357ac7ebc983c6c4c78ee0da7e920587c6176d85a86cf033b5f57a23175bc/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f61727261792d616461707465722f762f737461626c65)](https://packagist.org/packages/cache/array-adapter)[![codecov.io](https://camo.githubusercontent.com/a467486a77f8fb0f80ccd48c21fe92966aeab2c83091e8976e6b7f3da24f670b/68747470733a2f2f636f6465636f762e696f2f6769746875622f7068702d63616368652f61727261792d616461707465722f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/array-cache/apc-adapter?branch=master)[![Total Downloads](https://camo.githubusercontent.com/2074b676bbb998a9218debdfaa82099edeefe5fb527cc95f53983f020ceff408/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f61727261792d616461707465722f646f776e6c6f616473)](https://packagist.org/packages/cache/array-adapter)[![Monthly Downloads](https://camo.githubusercontent.com/275b8137f4b481f310dca14ed111576178af5da6eed3b51dd31a2fd2285cc37d/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f61727261792d616461707465722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cache/array-adapter)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This is a PSR-6 cache implementation using PHP array. It is a part of the PHP Cache organisation. To read about features like tagging and hierarchy support please read the shared documentation at [www.php-cache.com](http://www.php-cache.com).

### Install

[](#install)

```
composer require cache/array-adapter
```

### Use

[](#use)

You do not need to do any configuration to use the `ArrayCachePool`.

```
$pool = new ArrayCachePool();
```

### Contribute

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or report any issues you find on the [issue tracker](http://issues.php-cache.com).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity58

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 68.1% 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 ~200 days

Recently: every ~442 days

Total

12

Last Release

1584d ago

Major Versions

0.5.0 → 1.0.02017-07-16

PHP version history (5 changes)0.1.0PHP ^5.5|^7.0

0.4.1PHP ^5.5 || ^7.0

0.5.0PHP ^5.6 || ^7.0

1.1.0PHP ^5.6 || ^7.0 || ^8.0

1.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (49 commits)")[![cryptiklemur](https://avatars.githubusercontent.com/u/896295?v=4)](https://github.com/cryptiklemur "cryptiklemur (6 commits)")[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (6 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (4 commits)")[![maidmaid](https://avatars.githubusercontent.com/u/4578773?v=4)](https://github.com/maidmaid "maidmaid (2 commits)")[![Korbeil](https://avatars.githubusercontent.com/u/944409?v=4)](https://github.com/Korbeil "Korbeil (1 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")[![jlaswell](https://avatars.githubusercontent.com/u/1676217?v=4)](https://github.com/jlaswell "jlaswell (1 commits)")[![julien-maitan](https://avatars.githubusercontent.com/u/8706365?v=4)](https://github.com/julien-maitan "julien-maitan (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")

---

Tags

arraycachepsr-6tag

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cache-array-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/cache-array-adapter/health.svg)](https://phpackages.com/packages/cache-array-adapter)
```

###  Alternatives

[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/void-adapter

A PSR-6 cache implementation using Void. This implementation supports tags

183.0M44](/packages/cache-void-adapter)

PHPackages © 2026

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