PHPackages                             motomedialab/laravel-redis-driver - 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. motomedialab/laravel-redis-driver

ActiveLibrary[Caching](/categories/caching)

motomedialab/laravel-redis-driver
=================================

A Laravel Redis driver override that enforces clearing of cache using prefixes, rather than a flush

2.1.0(2mo ago)02.0k↑43.2%MITPHP

Since Feb 15Pushed 2mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Laravel Redis Cache Store Override
==================================

[](#laravel-redis-cache-store-override)

A simple package that overrides the default behavior when flushing the Laravel Redis cache store.

### Why?

[](#why)

The default behaviour of Laravel's Redis driver when calling `cache()->clear()` while using the Redis cache driver is to call a `flushdb` command for the entire Redis database. This is not always desirable, especially when using a multi tenancy Redis instance.

This package overrides that behaviour by clearing only the keys that match the cache prefix, stopping a global `flushdb` command from being called.

### Installation

[](#installation)

Simply pull the package in using composer, as below and you're good to go!

```
composer require motomedialab/laravel-redis-driver
```

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance83

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Recently: every ~187 days

Total

6

Last Release

86d ago

Major Versions

v1.1.1 → v2.0.02025-07-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2487374?v=4)[Chris Page](/maintainers/chrispage1)[@chrispage1](https://github.com/chrispage1)

---

Top Contributors

[![chrispage1](https://avatars.githubusercontent.com/u/2487374?v=4)](https://github.com/chrispage1 "chrispage1 (12 commits)")

### Embed Badge

![Health badge](/badges/motomedialab-laravel-redis-driver/health.svg)

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

###  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)
