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

ActiveLibrary[Caching](/categories/caching)

swiftframework/cache
====================

Cache library for PHP5.3+

029PHP

Since Nov 17Pushed 13y ago1 watchersCompare

[ Source](https://github.com/SwiftFramework/SwiftCache)[ Packagist](https://packagist.org/packages/swiftframework/cache)[ RSS](/packages/swiftframework-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Cache Component
===============

[](#cache-component)

[![Build Status](https://camo.githubusercontent.com/f6f44a99b3fdc3f7143ac23a9be6c2506a0d5bb93c2b76faed34b62ae34df528/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f53776966744672616d65776f726b2f537769667443616368652e706e67)](http://travis-ci.org/SwiftFramework/SwiftCache)

The example below demonstrates how you can set up a fully working cache system:

```
use Swift\Cache\Apc;

$cache = new Apc();
$cache->set('foot', 'bar');

echo $cache->get('foot');

$cache->remove('foot');

$cache['test'] = 'bar';

```

Resources
---------

[](#resources)

You can run the unit tests with the following command:

```
$ cd path/to/Swift/Cache/
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install --dev
$ ./vendor/mageekguy/atoum/bin/atoum --glob Tests/Units/

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/166d3f646053e073824a9f1d2ef6c3bb6bbf9f28f5e3d5764ec45354ade21d7b?d=identicon)[euskadi31](/maintainers/euskadi31)

---

Top Contributors

[![euskadi31](https://avatars.githubusercontent.com/u/195383?v=4)](https://github.com/euskadi31 "euskadi31 (5 commits)")

### Embed Badge

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

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

PHPackages © 2026

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