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

ActiveLibrary[Caching](/categories/caching)

cuephp/cache
============

a light weight cache lib

0.2.0(4y ago)011MITPHPPHP ^7.3||^8.0

Since Dec 4Pushed 4y agoCompare

[ Source](https://github.com/cueBlog-Club/cache)[ Packagist](https://packagist.org/packages/cuephp/cache)[ Docs](https://github.com/cueBlog-Club/cuePHP-framework/tree/main/packages/cache)[ RSS](/packages/cuephp-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

CuePhp-Cache
============

[](#cuephp-cache)

[![Build Status](https://github.com/cueBlog-Club/cache/actions/workflows/ci.yml/badge.svg)](https://github.com/cueBlog-Club/cache/actions)[![Code Coverage](https://camo.githubusercontent.com/c452226d4bfbf7a26dde17d936e29be8ff9d4250ea1ffa7ccf5e6e1aecd89380/68747470733a2f2f636f6465636f762e696f2f67682f637565426c6f672d436c75622f63616368652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/cueBlog-Club/cache/branch/main)

[![Latest Stable Version](https://camo.githubusercontent.com/2e382a19c6b832a732f8541283ab92eb71faa24a0ffea854756a510e37438fc4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6375657068702f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cuephp/cache)[![Total Downloads](https://camo.githubusercontent.com/f7130dab3618dc2c417f5451f129ed65b9ba8d29c90fa4853e0033414a95a451/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6375657068702f63616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cuephp/cache)

### Suport Storage Engine

[](#suport-storage-engine)

- InMemory
- File
- Memcached
- Redis
- Yac

### Instanll

[](#instanll)

```
compose require cuephp/cache

```

### Cache Usage

[](#cache-usage)

```
use CuePhp\Cache\Engine\InMemoryEngine;
use CuePhp\Cache\Config\InMemoryConfig;

$config = new InMemoryConfig;
$engine = new InMemoryEngine( $config );

$engine->set( 'key', 'value', 10 );

$item = $engine->get('key');
$item->getData(); // return 'value'
```

### Counter Usage

[](#counter-usage)

```
use CuePhp\Cache\Engine\InMemoryEngine;
use CuePhp\Cache\Config\InMemoryConfig;

$config = new InMemoryConfig;
$engine = new InMemoryEngine( $config );

$incrCounter= $engine->incr( 'key' );
$value = $incrCounter->getData(); //return 1 if 'key' not exist

$incrCount = $engine->incr('key', 10);
$value = $incrCounter->getData(); //return 11
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1625d ago

### Community

Maintainers

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

---

Top Contributors

[![SolaTyolo](https://avatars.githubusercontent.com/u/29033393?v=4)](https://github.com/SolaTyolo "SolaTyolo (7 commits)")

---

Tags

cacheredisyacrediscachepsr-16filememcached

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[desarrolla2/cache

Provides an cache interface for several adapters Apc, Apcu, File, Mongo, Memcache, Memcached, Mysql, Mongo, Redis is supported.

1322.5M47](/packages/desarrolla2-cache)[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3212.5M32](/packages/matthiasmullie-scrapbook)[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)

PHPackages © 2026

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