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

ActiveLibrary[Caching](/categories/caching)

dhii/cache-abstract
===================

Abstract functionality for caching.

v0.1-alpha1(8y ago)01.9k1MITPHPPHP ^5.4 | ^7.0

Since Mar 22Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Dhii/cache-abstract)[ Packagist](https://packagist.org/packages/dhii/cache-abstract)[ RSS](/packages/dhii-cache-abstract/feed)WikiDiscussions develop Synced 2w ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (1)

Dhii - Cache - Abstract
=======================

[](#dhii---cache---abstract)

[![Build Status](https://camo.githubusercontent.com/ffc27bf3c4bdb6ff898442d6a36a268df5545e4e4570c988e315f6f016283750/68747470733a2f2f7472617669732d63692e6f72672f446869692f63616368652d61627374726163742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/cache-abstract)[![Code Climate](https://camo.githubusercontent.com/ae589d1de7c3d301518d4dc6c8d71e7d41f04380fc11bdbe1d7fc97b93dfe3a0/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f63616368652d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/cache-abstract)[![Test Coverage](https://camo.githubusercontent.com/b7b33e87e8d66b51ef9d0cf8f7b7cd5cfc055b361828f908f60407eb3e48064b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f63616368652d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/cache-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/17631fcfafb8fdc792b03f3b095f36400b9309b12b6aec38f48a9bba27ba51f1/68747470733a2f2f706f7365722e707567782e6f72672f646869692f63616368652d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/cache-abstract)[![Latest Unstable Version](https://camo.githubusercontent.com/731d91936666af96c478da347cc5c4ed0742550a75f19430d8851cbd318c312b/68747470733a2f2f706f7365722e707567782e6f72672f646869692f63616368652d61627374726163742f762f756e737461626c65)](https://packagist.org/packages/dhii/cache-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

Abstract functionality for caching.

### Traits

[](#traits)

- [`GetCachedCapableTrait`](src/GetCachedCapableTrait.php) - Retrieves a cached value by key from self. Supports default value or value generation. Very useful for memoization. Allows specifying a TTL, if the underlying storage medium supports that.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

3022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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