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

ActiveLibrary[Caching](/categories/caching)

vpg/titon.cache
===============

The Titon cache package provides a data caching layer that supports multiple storage engines.

v1.3.2(8y ago)013.7k↓32.8%BSD-2-ClausePHPPHP &gt;=5.4.0

Since Jan 1Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/vpg/titon.cache)[ Packagist](https://packagist.org/packages/vpg/titon.cache)[ Docs](http://titon.io)[ RSS](/packages/vpg-titoncache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

Cache v0.8.2 [![Build Status](https://camo.githubusercontent.com/c7a450f08de6aba33da697e3f048878df25a1ce321b15b3da7d11a12dd59e884/68747470733a2f2f7472617669732d63692e6f72672f7469746f6e2f63616368652e706e67)](https://travis-ci.org/titon/cache)
=================================================================================================================================================================================================================================================

[](#cache-v082-)

Provides a data caching layer that supports popular storage engines like Memcache, APC, Redis, Wincache, Xcache, and the local file system. A `Cache` instance can be used to manage and interact with `Storage` engines.

```
$cache = new Titon\Cache\Cache();
$cache->addStorage('memcache', new Titon\Cache\Storage\MemcacheStorage());
$cache->addStorage('fs', new Titon\Cache\Storage\FileSystemStorage());

$cache->set('foo', $data, '+1 hour', 'memcache');
$data = $cache->get('bar', 'fs');
```

`Storage` engines can also be used externally and are primarily injected into other services for caching.

```
$apc = new Titon\Cache\Storage\ApcStorage();
$apc->remove('foo');
```

### Features

[](#features)

- `Cache` - Storage management layer
- `Storage` - Vendor specific caching mechanism

### Dependencies

[](#dependencies)

- `Common`
- `Io` (optional, for FileSystemStorage)
- `Db` (optional, for DatabaseStorage)

### Requirements

[](#requirements)

- PHP 5.4.0
    - Igbinary (optional)
    - Apc (for ApcStorage)
    - Memcached (for MemcacheStorage)
    - Redis (for RedisStorage)
    - Wincache (for WincacheStorage)
    - Xcache (for XcacheStorage)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance57

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~231 days

Recently: every ~289 days

Total

6

Last Release

3000d ago

### Community

Maintainers

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

---

Top Contributors

[![ogarbe](https://avatars.githubusercontent.com/u/1395245?v=4)](https://github.com/ogarbe "ogarbe (1 commits)")[![OlivierPiegay](https://avatars.githubusercontent.com/u/1914604?v=4)](https://github.com/OlivierPiegay "OlivierPiegay (1 commits)")

---

Tags

rediscachememorystoragexcacheapctitonmemcachewincache

### Embed Badge

![Health badge](/badges/vpg-titoncache/health.svg)

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

###  Alternatives

[phpfastcache/phpfastcache

PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Dynamodb, Firestore, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ravendb, Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.

2.4k5.0M130](/packages/phpfastcache-phpfastcache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.1k](/packages/ihor-cachalot)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)[jamm/memory

Key-value storage in memory. As a storage can be used: APC, Redis, Memcache, Shared memory. All storage objects have one interface, so you can switch them without changing the working code. Contains PHP Redis client.

13326.3k1](/packages/jamm-memory)

PHPackages © 2026

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