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

ActiveLibrary[Caching](/categories/caching)

tdt/cache
=========

A wrapper around caching systems.

v1.0(13y ago)08501[1 PRs](https://github.com/tdt/cache/pulls)AGPLv3

Since Feb 6Pushed 10y ago5 watchersCompare

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

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

tdt/cache
=========

[](#tdtcache)

[![Build Status](https://camo.githubusercontent.com/5032ed1c53057a23c0865d0bc4c471a881f5c5118531285856f18ae605b4108c/68747470733a2f2f7472617669732d63692e6f72672f7464742f63616368652e706e67)](https://travis-ci.org/tdt/cache)

This repository holds a wrapper around a caching system. You can use NoCache if no caching system is installed, or MemCache. This allows the user to provide caching in his code, and switch to other caching systems later on if necessary.

Usage
=====

[](#usage)

```
$c = Cache::getInstance( array("system" => "Memcache", "host" => "localhost", "port" => 11211 ) );
$c->set("key", $objectToCache, $TTL); // TTL is optional

$cachedObject = $c->get("key");
// delete the cachedObject
$c->delete("key");
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4871d ago

### Community

Maintainers

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

---

Top Contributors

[![coreation](https://avatars.githubusercontent.com/u/361244?v=4)](https://github.com/coreation "coreation (6 commits)")

---

Tags

caching

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

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

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k365.0M3.1k](/packages/symfony-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444124.5M43](/packages/react-cache)[tedivm/stash

The place to keep your cache.

9614.9M126](/packages/tedivm-stash)[overblog/dataloader-php

DataLoaderPhp is a generic utility to be used as part of your application's data fetching layer to provide a simplified and consistent API over various remote data sources such as databases or web services via batching and caching.

2124.4M6](/packages/overblog-dataloader-php)[spatie/blink

Cache that expires in the blink of an eye

1675.3M10](/packages/spatie-blink)

PHPackages © 2026

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