PHPackages                             phpe/ccache - 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. phpe/ccache

ActiveLibrary[Caching](/categories/caching)

phpe/ccache
===========

Class for caching content

v1.0(11y ago)014MITHTMLPHP &gt;=5.3

Since Feb 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/phphille/CCache)[ Packagist](https://packagist.org/packages/phpe/ccache)[ RSS](/packages/phpe-ccache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

CCache
======

[](#ccache)

About
-----

[](#about)

A very light and simple class that caches content.

```
PHP 5 >= 5.3.0

```

Introduction
------------

[](#introduction)

Create an object of CCache like $cache = new \\phpe\\cache\\CCache($aPath);

Then you can create a cache file with $cache-&gt;Put('nameOfFile', 'contentInFile');

When you want to get the content of a cache file, call $cache-&gt;Get('nameOfFile');

You can also prune an item with $cache-&gt;Prune('nameOfFile'); or prune all items with $cache-&gt;PruneAll('nameOfFile');

Using anax-mvc
==============

[](#using-anax-mvc)

Make it apart of $Di like:

$di-&gt;setShared('cache', function() { $cache = new \\phpe\\cache\\CCache('path to dir'); return $cache; });

Then can you, depenending where in the code you want to reach CLog, reach the class whit either $app or $di; $app-&gt;cache-&gt;Put('file', 'hello'); or $this-&gt;di-&gt;cache-&gt;Put('file', 'hello');

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fde971096f5b05573d5554ae0615fc4870a4d750bb3aab16bbd2fe3567af16df/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687068696c6c652f4343616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phphille/CCache/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/97665136c580c7076dcbbde5286c964df3c1727f153c8aa256f7c51fdc7e5fa8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687068696c6c652f4343616368652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phphille/CCache/?branch=master)[![Build Status](https://camo.githubusercontent.com/1dc70671f8af4c9c49797e77a7173dc3b6886104017d16472c1c532446713532/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687068696c6c652f4343616368652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phphille/CCache/build-status/master)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

4100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9724e1db2a2d46f13fa336b6510f7ee82bd7c4475b2d4096ca9426bd28439ac3?d=identicon)[phphille](/maintainers/phphille)

---

Top Contributors

[![phi-per](https://avatars.githubusercontent.com/u/201925622?v=4)](https://github.com/phi-per "phi-per (14 commits)")[![phphille](https://avatars.githubusercontent.com/u/10531841?v=4)](https://github.com/phphille "phphille (2 commits)")

---

Tags

performancecaching

### Embed Badge

![Health badge](/badges/phpe-ccache/health.svg)

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

###  Alternatives

[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)[maartenstaa/laravel-41-route-caching

This package allows you to cache your routes definitions, thereby speeding up each request.

25371.9k](/packages/maartenstaa-laravel-41-route-caching)[alekseykorzun/memcached-wrapper-php

Optimized PHP 5 wrapper for Memcached extension that supports dog-piling, igbinary and local storage

2984.6k1](/packages/alekseykorzun-memcached-wrapper-php)[tractorcow/silverstripe-dynamiccache

FORK OF Silverstripe module for simple on the fly caching of dynamic content

3916.0k2](/packages/tractorcow-silverstripe-dynamiccache)

PHPackages © 2026

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