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

ActiveLibrary[Caching](/categories/caching)

rtheunissen/cache
=================

A basic cache interface with adapters for common cache libraries

v0.1.0(10y ago)2146.8k↓31.9%1MITPHP

Since Jun 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rtheunissen/cache)[ Packagist](https://packagist.org/packages/rtheunissen/cache)[ RSS](/packages/rtheunissen-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (1)

Basic cache interface and adapters
==================================

[](#basic-cache-interface-and-adapters)

[![Author](https://camo.githubusercontent.com/989b5323df87a6d4fe899296ec948ba333af9e04bbe23add7962dd26def71220/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40727564695f746865756e697373656e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/rudi_theunissen)[![License](https://camo.githubusercontent.com/5d4ced4a7843a154c3e0c43c9e2c269abee4a7277bc31b811416fbd7b2135067/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72746865756e697373656e2f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rtheunissen/cache)[![Latest Version](https://camo.githubusercontent.com/f106d84b290c629f11bc3516fa71bcac5e59fe6674666f0ea7b011d278386769/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72746865756e697373656e2f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rtheunissen/cache)[![Build Status](https://camo.githubusercontent.com/cd6be9f4fc5fc02ba828e2261d09154ab5ea8a4b8cce70d41512035ed2f58353/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72746865756e697373656e2f63616368652e7376673f7374796c653d666c61742d737175617265266272616e63683d6d6173746572)](https://travis-ci.org/rtheunissen/cache)[![Scrutinizer](https://camo.githubusercontent.com/63049656ecd7633427b0578ec4f3d405966eadaf23cc57d86a85d90d92ef4d23/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72746865756e697373656e2f63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rtheunissen/cache/)[![Scrutinizer Coverage](https://camo.githubusercontent.com/fd802a66055af929c8ed872326873e8a172aa55231668a4da4b3e7f2a06adea8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72746865756e697373656e2f63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rtheunissen/cache/)

Installation
------------

[](#installation)

```
composer require rtheunissen/cache
```

Usage
-----

[](#usage)

Supported cache providers are: - [Doctrine - CacheProvider](https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/CacheProvider.php)- [Illuminate - Store](https://github.com/illuminate/contracts/blob/master/Cache/Store.php)- [Stash - AbstractDriver](https://github.com/tedious/Stash/blob/master/src/Stash/Driver/AbstractDriver.php)

The easiest way to create an adapter is to use the AdapterFactory.

```
$cache = AdapterFactory::get($provider);
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~34 days

Total

2

Last Release

3995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/761df764fa80c32031884a5dd2376cf7e70c0fa152eaa141fd68f12b4a761b9f?d=identicon)[rtheunissen](/maintainers/rtheunissen)

---

Top Contributors

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

---

Tags

interfacecacheadapter

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/rtheunissen-cache/health.svg)](https://phpackages.com/packages/rtheunissen-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)[amnuts/opcache-gui

A clean, effective and responsive interface for Zend OPcache, with real(ish)-time monitoring, filtering and the ability to invalidate files

1.4k4.9M17](/packages/amnuts-opcache-gui)[react/cache

Async, Promise-based cache interface for ReactPHP

445131.2M46](/packages/react-cache)[madewithlove/illuminate-psr-cache-bridge

851.5M13](/packages/madewithlove-illuminate-psr-cache-bridge)[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)

PHPackages © 2026

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