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

ActiveLibrary[Caching](/categories/caching)

cjmarkham/disk-cache
====================

A Disk Caching service for Silex

3520PHP

Since Feb 3Pushed 12y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

DiskCacheServiceProvider
========================

[](#diskcacheserviceprovider)

A disk cache service for silex

Registering
-----------

[](#registering)

In composer.json add this to your dependencies

```
"cjmarkham/disk-cache": "dev-master"

```

Then to register

```
$app->register(new DiskCache\DiskCacheServiceProvider());

```

Options
-------

[](#options)

- `cache_dir` - The path to the output directory

Usage
-----

[](#usage)

```
$app->register(new DiskCache\DiskCacheServiceProvider(), array(
    'diskcache.cache_dir' => dirname(dirname(__FILE__)) . '/cache'
));

$app['diskcache']->set('foo', 'bar');
$app['diskcache']->get('foo');
$app['diskcache']->delete('foo');

```

Groups
------

[](#groups)

Groups can be defined using a period (.).

```
$app['diskcache']->set('groupname.foo');
$app['diskcache']->delete_group('groupname');

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cc88d4c64a2a43cd297cd647d7fbea7400bab096910fb3b2c42e366b03fefca?d=identicon)[doddsey65](/maintainers/doddsey65)

### Embed Badge

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

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

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32136.0k](/packages/beryllium-cachebundle)

PHPackages © 2026

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