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 1w 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 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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

1323d 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

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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