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

ActiveLibrary[Caching](/categories/caching)

msolutions/tag-cache
====================

File tag caching package

0.9.5(11mo ago)147MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4|^8.5

Since Feb 20Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/mufaadsoft/TagCache)[ Packagist](https://packagist.org/packages/msolutions/tag-cache)[ RSS](/packages/msolutions-tag-cache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Laravel Tag Caching
===================

[](#laravel-tag-caching)

Version 0.9.4
-------------

[](#version-094)

This library is build to fulfill the requirement of tag caching system

Features
--------

[](#features)

- Stores caching data in a organize way
- Auto cache expiring
- Reducing the SQL query requests

### Installation

[](#installation)

```
composer require msolutions/tag-cache

```

### Implementing

[](#implementing)

```
use MSL\TagCache;

//caching query or any other data

$unique_key = "unique-name";
$ttl = (60*60);//timing for expiry in seconds

$result = TagCache::remember($unique_key, $ttl, function() {
    //database query fetching should be inside this function
    $cache_data = Model::get(); //database fetch query
    return $cache_data;
}, ["tag1", "tag2"]);

```

### Removing Cache

[](#removing-cache)

```
$unique_key = "unique-name"; //you cache unique key
TagCache::flush_cache(["tag1", "tag2"], $unique_key);

```

### Removing all cache

[](#removing-all-cache)

```
TagCache::flush_all();

```

This open source package is developed for general use, any of developers can use this for free.

- Please share your comments and ideas to improve the package.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance50

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.1% 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 ~171 days

Recently: every ~287 days

Total

8

Last Release

350d ago

PHP version history (3 changes)0.9.2-betaPHP ^7.4|^8.0|^8.1

0.9.4PHP ^7.4|^8.0|^8.1|^8.2|^8.3

0.9.5PHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

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

---

Top Contributors

[![mufaad-dev](https://avatars.githubusercontent.com/u/60340194?v=4)](https://github.com/mufaad-dev "mufaad-dev (16 commits)")[![ziakn](https://avatars.githubusercontent.com/u/50925153?v=4)](https://github.com/ziakn "ziakn (1 commits)")

---

Tags

cachefile cachelaravel-cachefile cachingtag cachetag cachingtag file cachingstorage cache

### Embed Badge

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

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

###  Alternatives

[silber/page-cache

Caches responses as static files on disk for lightning fast page loads.

1.3k441.9k6](/packages/silber-page-cache)[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.

15191.3k7](/packages/rapidwebltd-rw-file-cache)

PHPackages © 2026

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