PHPackages                             sylweriusz/taggedcache - 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. sylweriusz/taggedcache

ActiveLibrary[Caching](/categories/caching)

sylweriusz/taggedcache
======================

Cache (redis or memcache), fast delete, optionally based on tags

v1.5.5(2y ago)0144GPL-3.0PHPPHP &gt;=5.5.0

Since Apr 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sylweriusz/TaggedCache)[ Packagist](https://packagist.org/packages/sylweriusz/taggedcache)[ RSS](/packages/sylweriusz-taggedcache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (12)Used By (0)

TaggedCache
===========

[](#taggedcache)

Very simple caching, optionally with tags for fast delete of some key groups.

### Installation with composer

[](#installation-with-composer)

```
composer require sylweriusz/taggedcache

```

### Initialization

[](#initialization)

```
$cache = new \TaggedCache\Memcache('127.0.0.1'); //memcache server address
//or
$cache = new \TaggedCache\Redis('192.168.1.34'); //redis server address
```

\###Usage

```
$key  = md5("item name and unique params ".json_encode($params));
$tags = ['tag_for_delete'];

//try from cache, and save if not exists
if (!$result = $cache->load($key, $tags)){
    $result = json_encode($params); // anything time consuming what You want to do with $params
    $cache->save($result, $key, $tags, 1200); //remember this for 1200 sec
}
```

\###Cache Clean

```
//clean all items
$cache->clean('all');

//if one of $params get changed do somethink like this
$cache->clean('matchingAnyTag',['tag_for_delete', 'or_another_tag']);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~261 days

Recently: every ~458 days

Total

11

Last Release

1075d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cfd00bf6abce1b475ddb389653ea8e714cd9b65feec00326e9431ffda127847?d=identicon)[sylweriusz](/maintainers/sylweriusz)

---

Top Contributors

[![sylweriusz](https://avatars.githubusercontent.com/u/8569439?v=4)](https://github.com/sylweriusz "sylweriusz (65 commits)")

---

Tags

rediscachetagsmemcache

### Embed Badge

![Health badge](/badges/sylweriusz-taggedcache/health.svg)

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

###  Alternatives

[robinn/phpcacheadmin

A web dashboard for your favorite caching system.

4441.1k1](/packages/robinn-phpcacheadmin)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.1k](/packages/ihor-cachalot)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1413.9k](/packages/byerikas-cache-tags)[garyr/memento

Lightweight cache library

186.6k1](/packages/garyr-memento)

PHPackages © 2026

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