PHPackages                             um-flint/laravel-multi-tenant-redis - 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. um-flint/laravel-multi-tenant-redis

ActivePackage[Caching](/categories/caching)

um-flint/laravel-multi-tenant-redis
===================================

Laravel package to allow for a better "cache:clear".

v0.0.2(9y ago)0552MITPHP

Since Feb 2Pushed 9y ago4 watchersCompare

[ Source](https://github.com/um-flint/laravel-multi-tenant-redis)[ Packagist](https://packagist.org/packages/um-flint/laravel-multi-tenant-redis)[ RSS](/packages/um-flint-laravel-multi-tenant-redis/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Laravel Multi Tenant Redis
==========================

[](#laravel-multi-tenant-redis)

By default Laravel's Redis cache store will empty the entire Redis database when running `php artisan cache:clear`. This can be a problem when you are running multiple applications on the same Redis instance. Laravel's "fix" for this is to change the Redis database for each application. This really isn't a solution as using different Redis databases aren't really recommended.

That is where this package comes in. It is a drop in replacement for the Redis cache store. It keeps track of the keys added to cache so that only the keys for the application will be deleted on a cache flush.

Before installing it would be a good idea to clear the application cache.

### Installation

[](#installation)

Add to your composer.json file

```
"um-flint/laravel-multi-tenant-redis": "0.0.*"
```

### Register the package

[](#register-the-package)

In config/app.php add the service provider.

```
UMFlint\Cache\MultiTenantRedisServiceProvider::class,
```

#### Update config/cache.php

[](#update-configcachephp)

```
...
'stores' => [
        ...

        'multi-tenant-redis' => [
            'driver'     => 'multi-tenant-redis',
            'connection' => 'default',
        ],
    ],
...
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

3387d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1311943?v=4)[Donald](/maintainers/dowilcox)[@dowilcox](https://github.com/dowilcox)

---

Top Contributors

[![dowilcox](https://avatars.githubusercontent.com/u/1311943?v=4)](https://github.com/dowilcox "dowilcox (15 commits)")

---

Tags

laravelredis

### Embed Badge

![Health badge](/badges/um-flint-laravel-multi-tenant-redis/health.svg)

```
[![Health](https://phpackages.com/badges/um-flint-laravel-multi-tenant-redis/health.svg)](https://phpackages.com/packages/um-flint-laravel-multi-tenant-redis)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)[encore/redis-manager

Redis manager for laravel

25243.1k](/packages/encore-redis-manager)[yangusik/laravel-balanced-queue

Laravel queue management with load balancing between partitions (user groups)

786.4k](/packages/yangusik-laravel-balanced-queue)

PHPackages © 2026

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