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

ActiveLibrary[Caching](/categories/caching)

emmetog/cache
=============

A collection of PHP classes which act as caches

v1.0.0(13y ago)0753GPL-3.0PHP

Since May 1Pushed 13y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (3)

emmetog/cache
=============

[](#emmetogcache)

A collection of PHP classes which act as caches. This package has an interface and several classes which implement it. At the moment there are classes for the following types of cache:

- Memcached *(requires the php5-memcached package to be installed on your system)*
- Registry *(uses static variables to cache things for one PHP execution only)*
- NullCache *(can be used anywhere any other cache can but doesn't actually cache anything)*

This package has no other dependancies, it can easily be used on it's own.

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

[](#installation)

This package uses [Composer](http://getcomposer.org/), to use it just add it to your composer.json file.

For example:

```
"require": {
    "emmetog/cache":    "1.0.*",
}

```

Then just create the object you want (careful with namespaces) and use it, for example:

```
$registry = Emmetog\Cache\Registry::getInstance();

$registry->set('hello', 'world');

// $cachedValue will contain the string "world".
$cachedValue = $registry->get('hello');

```

This package follows the [semantic versioning](http://semver.org/) guidelines.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

4796d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1182891?v=4)[Emmet O'Grady](/maintainers/emmetog)[@emmetog](https://github.com/emmetog)

---

Top Contributors

[![emmetog](https://avatars.githubusercontent.com/u/1182891?v=4)](https://github.com/emmetog "emmetog (1 commits)")

---

Tags

cacheregistrymemecached

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k757.1M2.6k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k712.8M1.6k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

445124.5M44](/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.

2514.6M10](/packages/beste-in-memory-cache)[fastd/fastd

A High Performance API Framework By Swoole Extension

42015.4k18](/packages/fastd-fastd)[anahkiasen/flatten

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

33113.0k](/packages/anahkiasen-flatten)

PHPackages © 2026

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