PHPackages                             corneltek/cachekit - 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. corneltek/cachekit

ActiveLibrary[Caching](/categories/caching)

corneltek/cachekit
==================

General cache interface

1.0.0(12y ago)97.0k↓77.8%11MITPHPPHP &gt;=5.3.0

Since Dec 29Pushed 12y ago2 watchersCompare

[ Source](https://github.com/c9s/CacheKit)[ Packagist](https://packagist.org/packages/corneltek/cachekit)[ Docs](http://github.com/c9s/CacheKit)[ RSS](/packages/corneltek-cachekit/feed)WikiDiscussions master Synced 3w ago

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

CacheKit
========

[](#cachekit)

Generic cache interface for PHP.

### CacheKit Interface

[](#cachekit-interface)

```
$c = new CacheKit;
$memory = $c->createBackend( 'MemoryCache' );

$c->set( 'foo' , 123 );

$memory->set( 'foo' , '123' );
$val = $memory->get('foo');
```

### ApcCache Interface

[](#apccache-interface)

```
$cache = new CacheKit\ApcCache(array(
    'namespace' => 'app_',
    'default_expiry' => 3600,
));
$cache->set($name,$val);
$val = $cache->get($name);
$cache->remove($name);
```

### FileSystemCache

[](#filesystemcache)

```
$serializer = new SerializerKit\Serializer('json');
$cache = new CacheKit\FileSystemCache(array(
    'expiry' => 30,
    'cache_dir' => 'cache',
    'serializer' => $serializer,
));
$cache->clear();

$url = 'foo_bar';
$html = 'test content';
$cache->set( $url , $html );

$cache->remove( $url );

ok( null === $cache->get( $url ) );

$cache->clear();

ok( null === $cache->get( $url ) );

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

4559d ago

Major Versions

0.0.5 → 1.0.02013-12-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cc34cde233b660869ff329ed8e20df611f75dfb61aab3e30889ac153d3e5e61?d=identicon)[c9s](/maintainers/c9s)

---

Top Contributors

[![c9s](https://avatars.githubusercontent.com/u/50894?v=4)](https://github.com/c9s "c9s (44 commits)")

### Embed Badge

![Health badge](/badges/corneltek-cachekit/health.svg)

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

###  Alternatives

[barryvdh/laravel-httpcache

HttpCache for Laravel

502404.4k10](/packages/barryvdh-laravel-httpcache)

PHPackages © 2026

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