New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

motomedialab/laravel-redis-driver

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

Larablocks Analysis

motomedialab/laravel-redis-driver works with Laravel 8 to 13 (latest release 2.1.1, Sep 18, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Sep 18, 2026)
  • 259 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Sep 18, 2026.
  • 2 releases in the last 12 months.
  • First released: Feb 15, 2024.
  • Monthly downloads: 259.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require motomedialab/laravel-redis-driver
Latest Version:2.1.1
Laravel:8 – 13
License:MIT
Last Updated:Sep 18, 2026
Links: GitHub  ·  Packagist
Maintainer: chrispage1

Laravel Redis Cache Store Override

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

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

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

composer require motomedialab/laravel-redis-driver

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
2.1.1 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.1.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v2.0.1 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v2.0.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v1.1.1 ^8.0 ^8.0|^9.0|^10.0|^11.0 MIT