PHPackages                             adrorocker/tinycache - 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. adrorocker/tinycache

ActiveLibrary[Caching](/categories/caching)

adrorocker/tinycache
====================

A simple library to cache assets and html page

0.1.0(9y ago)1281MITPHPPHP &gt;= 5.6

Since Jan 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/adrorocker/tinycache)[ Packagist](https://packagist.org/packages/adrorocker/tinycache)[ Docs](https://github.com/adrorocker/tinycache)[ RSS](/packages/adrorocker-tinycache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[Tiny Cache](https://github.com/adrorocker/tinycache)
=====================================================

[](#tiny-cache)

A small library to cache assets and html pages.

[![Build status](https://camo.githubusercontent.com/ce2f0dcff42785325c85676350096be28ef28e39c60e75adb292a48e0202074f/68747470733a2f2f7472617669732d63692e6f72672f6164726f726f636b65722f74696e7963616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/adrorocker/tinycache/)[![Coverage Status](https://camo.githubusercontent.com/4b7447b4e762bbb2a36614b80692cb7e9e7674f9c5a57f0a6400efae6ebc4ee5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6164726f726f636b65722f74696e7963616368652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/adrorocker/tinycache)[![Latest Stable Version](https://camo.githubusercontent.com/d1a2cc75bc30ddcc83ac331ec0874d5f98d627f3f8f25c41604c9c6d0dea4a08/68747470733a2f2f706f7365722e707567782e6f72672f6164726f726f636b65722f74696e7963616368652f762f737461626c65)](https://packagist.org/packages/adrorocker/tinycache)[![License](https://camo.githubusercontent.com/c5f8b9330eb846ce6f7372237b636b3591998601dfa7937ef5f98cb63fb04f92/68747470733a2f2f706f7365722e707567782e6f72672f6164726f726f636b65722f74696e7963616368652f6c6963656e7365)](https://packagist.org/packages/adrorocker/tinycache)

---

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

[](#installation)

```
composer require adrorocker/tinycache

```

Usage
-----

[](#usage)

```
require '../vendor/autoload.php';

use TinyCache\Cache;
use TinyCache\Item;
use TinyCache\Adapter\FilesystemAdapter;

$cache = new Cache(new FilesystemAdapter);

$item1 = new Item('key1','Hola uno');
$item2 = new Item('key2','Hola dos');

$cache->save($item1)

// You can 'add' an Item to the cache collection before it is actually saved on the pool
$cache->saveDeferred($item2);

// Then commit to save the items on the pool
$cache->commit();

// Get an Item from the pool
$item = $cache->getItem('key1');

// Get several Items from the pool
$items = $cache->getItems(['key1','key2']);

// Delete on Item from the pool
$cache->deleteItem('key1');

// Delete several Items from the pool
$cache->deleteItems(['key1','key2']);

// Delete all Items from the pool
$cache->clear();
```

Authors:
--------

[](#authors)

[Alejandro Morelos](https://github.com/adrorocker).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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

Unknown

Total

1

Last Release

3392d ago

### Community

Maintainers

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

---

Top Contributors

[![adrorocker](https://avatars.githubusercontent.com/u/1872940?v=4)](https://github.com/adrorocker "adrorocker (9 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

phpcachepsr-6opensourceadrorocker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adrorocker-tinycache/health.svg)

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

###  Alternatives

[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)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[cache/void-adapter

A PSR-6 cache implementation using Void. This implementation supports tags

183.0M44](/packages/cache-void-adapter)[cache/memcached-adapter

A PSR-6 cache implementation using Memcached. This implementation supports tags

161.9M14](/packages/cache-memcached-adapter)[cache/session-handler

An implementation of PHP's SessionHandlerInterface that allows PSR-6

18557.9k5](/packages/cache-session-handler)

PHPackages © 2026

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