PHPackages                             apix/simple-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. [Database &amp; ORM](/categories/database)
4. /
5. apix/simple-cache

ActiveLibrary[Database &amp; ORM](/categories/database)

apix/simple-cache
=================

The PSR-16 extension to Apix-Cache.

1.0.0(9y ago)917.5k1BSD-3-ClausePHPPHP ^5.3.2|^7.0CI failing

Since May 3Pushed 6y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Apix-SimpleCache, the PSR-16 extension to [Apix-Cache](//github.com/apix/cache)
===============================================================================

[](#apix-simplecache-the-psr-16-extension-to-apix-cache)

[![Latest Stable Version](https://camo.githubusercontent.com/f217ab4d3eaa7c2cb2370a38d414cc4d61b97dd8a1d885d3e3fe046777982482/68747470733a2f2f706f7365722e707567782e6f72672f617069782f73696d706c652d63616368652f762f737461626c652e737667)](https://packagist.org/packages/apix/simple-cache)[![Build Status](https://camo.githubusercontent.com/439f111bb29d3ec26049afe42088a2d76cea2a36c52f612c041a8eb84985deb0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617069782f73696d706c652d63616368652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/apix/simple-cache/build-status/master)[![Code Quality](https://camo.githubusercontent.com/36298615b2068b6a99854495d99a9b5a75b430bf558a1101a88c1db4c91ef78b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617069782f73696d706c652d63616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/apix/simple-cache/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/588ce4087981df5035e487270518575876de1ee9f51d158d3c72850de07958f0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617069782f73696d706c652d63616368652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/apix/simple-cache/?branch=master)[![License](https://camo.githubusercontent.com/fba8936c052be6c457950f5bb4343ebb3ef46e18f96501fd5569d623a399f69d/68747470733a2f2f706f7365722e707567782e6f72672f617069782f73696d706c652d63616368652f6c6963656e73652e737667)](https://packagist.org/packages/apix/simple-cache)[![Build Status](https://camo.githubusercontent.com/365b2cb7acda1b54b94667bb08d0f903661e9fd9d4aa65446b451ccacb0c421e/68747470733a2f2f7472617669732d63692e6f72672f617069782f73696d706c652d63616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/apix/simple-cache)

Apix-SimpleCache provides PSR-16 to **[Apix-Cache](//github.com/apix/cache)** permitting easy caching and invalidation...

- Fully **unit-tested** and compliant with PSR-1, PSR-2, PSR-4 and PSR-16.
- [Continuously integrated](https://travis-ci.org/apix/simple-cache) with **PHP** **5.3**, **5.4**, **5.5**, **5.6**, **7.0**, **7.1**, **7.2**, **7.3** and HHVM.

⇄ *[Pull requests](//github.com/apix/simple-cache/blob/master/.github/CONTRIBUTING.md)* and ★ *Stars* are always welcome. For bugs and feature request, please [create an issue](//github.com/apix/simple-cache/issues/new).

---

Basic usage
-----------

[](#basic-usage)

```
  use Apix\SimpleCache;

  $client = new \Redis();
  #$client = new \PDO('sqlite:...');    // Any supported client object e.g. Memcached, MongoClient, ...
  #$client = new Cache\Files($options); // or one that implements Apix\Cache\Adapter
  #$client = 'apc';                     // or an adapter name (string) e.g. "APC", "Runtime"
  #$client = new MyArrayObject();       // or even a plain array() or \ArrayObject.

  $cache = SimpleCache\Factory::getPool($client);           // without tagging support
  #$cache = SimpleCache\Factory::getTaggablePool($client);  // with tagging

  if ( !$cache->has('wibble_id') ) {
    $data = compute_slow_and_expensive_stuff();
    $cache->set('wibble_id', $data);
  }

  return $cache->get('wibble_id');
```

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

[](#installation)

This project adheres to [Semantic Versioning](http://semver.org/) and can be installed using composer:

```
$ composer require apix/simple-cache:1.0.*

```

All notable changes to this project are documented in its [CHANGELOG](CHANGELOG.md).

License
-------

[](#license)

This work is licensed under the New BSD license -- see the [LICENSE](LICENSE.txt) for the full details.
Copyright (c) 2010-2017 Franck Cassedanne

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

3346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dbf52cf502005b3980f141849589ca308ddf20652b0c3c6371305dad2b9b1df?d=identicon)[frqnck](/maintainers/frqnck)

---

Top Contributors

[![frqnck](https://avatars.githubusercontent.com/u/479874?v=4)](https://github.com/frqnck "frqnck (26 commits)")

---

Tags

apcsapiapic-cachecache-bustingigbinarymemcachedmsgpackmysqloraclepdoper-simple-cachepsr-16psr-7redissqlsqlitetaggingcachecachingpsr-16psr-6sessionpsr-cachepsr-simple-cacheTaggablecache-bustingpsrCache

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3232.8M42](/packages/matthiasmullie-scrapbook)[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

117548.2k6](/packages/apix-cache)[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.5k5.3M140](/packages/phpfastcache-phpfastcache)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1077.3M153](/packages/laminas-laminas-cache)[desarrolla2/cache

Provides an cache interface for several adapters Apc, Apcu, File, Mongo, Memcache, Memcached, Mysql, Mongo, Redis is supported.

1342.5M48](/packages/desarrolla2-cache)[cakephp/cache

Easy to use Caching library with support for multiple caching backends

518.7M24](/packages/cakephp-cache)

PHPackages © 2026

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