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 1w 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 40% 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

3481d 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.8k9.3M74](/packages/spatie-laravel-responsecache)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M110](/packages/mongodb-laravel-mongodb)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)

PHPackages © 2026

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