PHPackages                             doxroot/laravel-redis-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. doxroot/laravel-redis-cache

ActiveLibrary[Caching](/categories/caching)

doxroot/laravel-redis-cache
===========================

A simple way to cache things in Laravel framework using "tags"

0.0.3(3mo ago)01MITPHPPHP ^8.2

Since Mar 7Pushed 3mo agoCompare

[ Source](https://github.com/doxroot/laravel-redis-cache)[ Packagist](https://packagist.org/packages/doxroot/laravel-redis-cache)[ RSS](/packages/doxroot-laravel-redis-cache/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

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

[](#installation)

composer require doxroot/laravel-redis-cache

Purpose
-------

[](#purpose)

This library uses Laravel, but with a different approach to tags. It's mutch to say tags, as it uses the default Laravel cache system to create just a wrapper and nothing more around a powerful cache from the default Laravel core system.

What I don't like about tags in Laravel is the default mechanism. Each key stored in a tag has to be added to another list for later cleanup.

Well, in most applications, a simpler solution might be better.

This application will create a key like: tag:filter:key In Redis, we can simply remove all keys that start with some\_path\*. And that's it. Nothing more with this library.

I am making this available in the hope that it can help someone.

###### Some additional info

[](#some-additional-info)

Just extend AbstractRedisCache for other needs. Very simple. Hard to say a library, because it's just an absolute minimal wrapper arounde Cache facade.

```
DoxrootDbQueryRedisCache::put(key1, value);
DoxrootDbQueryRedisCache::put(key2, value);
Add 2 keys

```

```
DoxrootDbQueryRedisCache::put(key3, value, filterKey: test);
DoxrootDbQueryRedisCache::put(key4, value, filterKey: test);
DoxrootDbQueryRedisCache::put(key5, value, filterKey: test1);
DoxrootDbQueryRedisCache::put(key6, value, filterKey: test1);
Add 4 more keys (total 6)

```

```
DoxrootDbQueryRedisCache::flush(); // will remove all 6 keys
DoxrootDbQueryRedisCache::flush(test); will remove only key3 && key4
DoxrootDbQueryRedisCache::flush(test1); will remove only key5 && key6

```

So, just a minimal wrapper for cache.

---

Some benchmark results:
-----------------------

[](#some-benchmark-results)

Code used for Laravel:

```
Cache:tags([tag-name])->put(key, value);
Cache::tags([tag-name])->flush();

```

Code using this library:

```
DoxrootDbQueryRedisCache::put(key, value);
DoxrootDbQueryRedisCache::flush();

```

### Results

[](#results)

Insert 100K rows using Laravel `Time: 36.89 seconds`

Insert 100K rows using this lib `Time: 19.95 seconds`

Insert 1M rows using Laravel `Time: 373.27 seconds || 6.23 minutes`

Insert 1M rows using this lib `Time: 203.28 seconds || 3.38 minutes`

Remove all data (1M rows) Laravel `Time: 5.64 seconds`

Remove all data (1M rows) using this lib `Time: 1.63 seconds`

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance80

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ee6b68cd8df1f106541800cea8c5cb6c37c746dbee38682615f57740101649c?d=identicon)[xizprodev](/maintainers/xizprodev)

---

Top Contributors

[![doxroot](https://avatars.githubusercontent.com/u/82259632?v=4)](https://github.com/doxroot "doxroot (3 commits)")

### Embed Badge

![Health badge](/badges/doxroot-laravel-redis-cache/health.svg)

```
[![Health](https://phpackages.com/badges/doxroot-laravel-redis-cache/health.svg)](https://phpackages.com/packages/doxroot-laravel-redis-cache)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[laravel-enso/rememberable

Model caching dependency for Laravel Enso

2864.4k41](/packages/laravel-enso-rememberable)[justbetter/laravel-unique-values

Package to generate unique values with support for concurrency utilizing cache locking

535.6k](/packages/justbetter-laravel-unique-values)

PHPackages © 2026

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