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

ActiveLibrary[Caching](/categories/caching)

gemblue/tiny-cache
==================

Simple Cache Adapter for PHP Projects, PSR-16 Comply

1.1.3(3y ago)0245MITPHPPHP ^7.2.5 || ^8.0

Since Apr 21Pushed 3y ago2 watchersCompare

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

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

TinyCache
=========

[](#tinycache)

Modern cache adapter for PHP Projects.

- PHP ^7.0 Syntax
- PSR-4
- PSR-16
- Factory and Adapter Pattern
- Exception

Supported Framework
-------------------

[](#supported-framework)

This library is PSR-4 comply. You can use it on every framework that support composer.

- CodeIgniter 3/4
- Laravel
- Yii
- Your framework?
- Native PHP

Supported Drivers
-----------------

[](#supported-drivers)

- Redis
- Memcached
- File
- MongoDB

Next plan : ApacheIgnite

Installation
------------

[](#installation)

`composer require gemblue/tiny-cache`

Usage
-----

[](#usage)

```
use Gemblue\TinyCache\CacheFactory;

$cacheFactory = new CacheFactory;
$cache = $cacheFactory->getInstance([
  'driver' => 'Memcached',
  'host' => 'localhost',
  'post' => 11211,
  'persistence' => true
]);
```

For full example, browse example folder.

API
---

[](#api)

MethodDescsetSet a keygetGet a keydeleteDelete a keyclearWipe all keyhasCheck key existancesetMultipleSet multiple keygetMultipleGet multiple keydeleteMultipleDelete multiple keyDelete by Prefix
----------------

[](#delete-by-prefix)

To delete caches with any prefix, just call like this:

```
$cache->delete('prefix_*');
```

Developed By
------------

[](#developed-by)

- @gemblue
- @yllumi

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.9% 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 ~128 days

Recently: every ~221 days

Total

8

Last Release

1414d ago

Major Versions

0.0.3 → 1.0.02020-04-29

PHP version history (3 changes)0.0.1PHP ^7.2

1.0.1PHP ^7.0

1.1.3PHP ^7.2.5 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c2000ffb9f44643b83d90b1afc3bef6e9a50285b7ccf888fa3ee59c2b02bfba?d=identicon)[gemblue](/maintainers/gemblue)

---

Top Contributors

[![gemblue](https://avatars.githubusercontent.com/u/879313?v=4)](https://github.com/gemblue "gemblue (47 commits)")[![yllumi](https://avatars.githubusercontent.com/u/404671?v=4)](https://github.com/yllumi "yllumi (9 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gemblue-tiny-cache/health.svg)](https://phpackages.com/packages/gemblue-tiny-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)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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