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

Abandoned → [cache/cache](/?search=cache%2Fcache)Library[Caching](/categories/caching)

treehouselabs/cache
===================

Library for quick and easy caching. Supports multiple drivers. \[DEPRECATED\]

v2.0.1(9y ago)164.1k21MITPHPPHP &gt;=5.5

Since May 2Pushed 9y ago9 watchersCompare

[ Source](https://github.com/treehouselabs/cache)[ Packagist](https://packagist.org/packages/treehouselabs/cache)[ RSS](/packages/treehouselabs-cache/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (3)Versions (9)Used By (1)

> This package is DEPRECATED use a PSR-6 solution like

Cache
=====

[](#cache)

Library for quick and easy caching. Supports multiple drivers.

[![Latest Version on Packagist](https://camo.githubusercontent.com/86aef7615c9014cc61c477a2844f05df0f32451aa35062197599f5a3c0eb164c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726565686f7573656c6162732f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/treehouselabs/cache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a483ef9d0d36d1500c6198ab78b31922d44b895821e87dc6f6d5f568231193c7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74726565686f7573656c6162732f63616368652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/treehouselabs/cache)[![Coverage Status](https://camo.githubusercontent.com/2a451f96dee339d410434a6f0c4b0a927bd9721bbd9dca772d1ffbab2b4deb18/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74726565686f7573656c6162732f63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/cache/code-structure)[![Quality Score](https://camo.githubusercontent.com/d557b4c14ac84a023dcd510b92d92fd8941ba03fd3680143e5ca293b9377b7d0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74726565686f7573656c6162732f63616368652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/cache)

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

[](#installation)

```
composer require treehouselabs/cache:^2.0
```

Usage
-----

[](#usage)

```
$driver = new RedisDriver($redis);
$serializer = new JsonSerializer();
$cache = new Cache($driver, $serializer);

$cache->set('foo', 'bar', 60);
$cache->get('foo');
$cache->has('foo');
$cache->remove('foo');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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 ~140 days

Recently: every ~133 days

Total

8

Last Release

3413d ago

Major Versions

v1.3.1 → v2.0.02016-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/49e70c4936c5121b835d48680dcf4bb57d21724c533dd99591e80101e4a25dd6?d=identicon)[pkruithof](/maintainers/pkruithof)

![](https://www.gravatar.com/avatar/aa2b08ed7a87334a1a0b8e302759c3587e4cbea1a1efb08f23d55cd04d1ccfc0?d=identicon)[marcojanssen](/maintainers/marcojanssen)

---

Top Contributors

[![pkruithof](https://avatars.githubusercontent.com/u/330828?v=4)](https://github.com/pkruithof "pkruithof (47 commits)")[![fieg](https://avatars.githubusercontent.com/u/1086908?v=4)](https://github.com/fieg "fieg (2 commits)")[![mvanduijker](https://avatars.githubusercontent.com/u/1771206?v=4)](https://github.com/mvanduijker "mvanduijker (1 commits)")

---

Tags

cache

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/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.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[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.

23817.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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