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 1w 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

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)

PHPackages © 2026

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