PHPackages                             o2system/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. [Framework](/categories/framework)
4. /
5. o2system/cache

ActivePackage[Framework](/categories/framework)

o2system/cache
==============

PHP Cache Handler Library

v2.2.107(5y ago)01.7k2MITPHPPHP ^7.2.0

Since Aug 3Pushed 5y ago2 watchersCompare

[ Source](https://github.com/o2system/cache)[ Packagist](https://packagist.org/packages/o2system/cache)[ RSS](/packages/o2system-cache/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (1)Versions (19)Used By (2)

[![alt text](https://repository-images.githubusercontent.com/68261023/b76a3300-5c9e-11ea-889b-cecbd8262547 "O2System Cache Atom")](https://repository-images.githubusercontent.com/68261023/b76a3300-5c9e-11ea-889b-cecbd8262547)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3224edaaa6d4a6b66d877d63932ad41d3633ab786cf69cc8924d3af3b472a4e0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f3273797374656d2f63616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/o2system/cache/?branch=master)[![Build Status](https://camo.githubusercontent.com/145893c13385f706c13f4ee19fafdcc3ac9c01094d15c5e4d21f6e28836a7fd5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f3273797374656d2f63616368652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/o2system/cache/build-status/master)[![PHP Composer](https://github.com/o2system/cache/workflows/PHP%20Composer/badge.svg)](https://github.com/o2system/cache/workflows/PHP%20Composer/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/707bbaa419646d10dfc0702345f09c7272d98d9c3957ac3b7063f9bcd9ef0add/68747470733a2f2f706f7365722e707567782e6f72672f6f3273797374656d2f63616368652f762f737461626c65)](https://packagist.org/packages/o2system/cache)[![Total Downloads](https://camo.githubusercontent.com/262f735c126df65492209e8ad52fa510221ac675c87291e65ed39dc0763856e2/68747470733a2f2f706f7365722e707567782e6f72672f6f3273797374656d2f63616368652f646f776e6c6f616473)](https://packagist.org/packages/o2system/cache)[![License](https://camo.githubusercontent.com/fcf4be314e30ee1c67abe17ba3bd595f57aa49751003149939c965169f91db14/68747470733a2f2f706f7365722e707567782e6f72672f6f3273797374656d2f63616368652f6c6963656e7365)](https://packagist.org/packages/o2system/cache)

O2System Cache
==============

[](#o2system-cache)

O2System Cache is an Open Source Cache Management Adapters Library. This allows the O2System Framework to integrate with some of the most popular cache storage engines. All but file-based caching require specific server requirements, and a Fatal Exception will be thrown if server requirements are not met. O2System Cache is build for working more powerful within O2System Framework, but also can be used for integrated with others as standalone version with limited features.

O2System Cache is written based on PSR-6: Caching Interface and PSR-16: Common Interface for Caching Libraries.

### Supported Storage Engines Adapters

[](#supported-storage-engines-adapters)

Engine7.2+ APCu`Yes`File`Yes`Memcache`Yes`Memcached`Yes`Redis`Yes`Wincache`Yes`> APC and XCache has been deprecated, OPCache has been merged into APCu.

### Composer Installation

[](#composer-installation)

The best way to install O2System Cache is to use [Composer](https://getcomposer.org)

```
composer require o2system/cache

```

> Packagist: [https://packagist.org/packages/o2system/cache](https://packagist.org/packages/o2system/Cache)

### Usage

[](#usage)

```
use O2System\Cache;

$cache = new Cache\Adapters\Opcache\ItemPool();

if( $cache->isConnected() ) {
    // Save cache
    $cache->save( new Cache\Item( 'cacheKeyName', 'This is cache content, support any type of data', 300 ) );
    // Get cache
    echo $cache->getItem( 'cacheKeyName' )->get();
}
```

> Output: This is cache content, support any type of data

Documentation is available on this repository [wiki](https://github.com/o2system/cache/wiki) or visit this repository [github page](https://o2system.github.io/cache).

### Ideas and Suggestions

[](#ideas-and-suggestions)

Please kindly mail us at [contact@o2system.id](mailto:contact@o2system.id%5D)

### Bugs and Issues

[](#bugs-and-issues)

Please kindly submit your [issues at Github](http://github.com/o2system/cache/issues) so we can track all the issues along development and send a [pull request](http://github.com/o2system/cache/pulls) to this repository.

### System Requirements

[](#system-requirements)

- PHP 7.2+ with APCu, Memcache, Redis or WinCache Extension
- [Composer](https://getcomposer.org)
- [O2System Kernel](https://github.com/o2system/kernel)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 91.1% 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 ~61 days

Recently: every ~105 days

Total

18

Last Release

2175d ago

PHP version history (3 changes)v2.0.0PHP &gt;=5.6.0

v2.2.61PHP ~7.2.0

v2.2.62PHP ^7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2ac781bdba53fdce5ac7a9f090a4afd42b18766646036370661ffefde7811de?d=identicon)[steevenz](/maintainers/steevenz)

![](https://www.gravatar.com/avatar/ccce1c77fabdaf8734f54c6b1a82324c4ad1278a62910c7cab0b5b15d941cf7b?d=identicon)[o2system](/maintainers/o2system)

---

Top Contributors

[![steevenz](https://avatars.githubusercontent.com/u/218405?v=4)](https://github.com/steevenz "steevenz (41 commits)")[![turahe](https://avatars.githubusercontent.com/u/6832622?v=4)](https://github.com/turahe "turahe (4 commits)")

---

Tags

phpframeworkdriverutilitieslibraries

### Embed Badge

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

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

###  Alternatives

[contao-community-alliance/dc-general

Universal data container for Contao

1578.3k86](/packages/contao-community-alliance-dc-general)

PHPackages © 2026

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