2017 © Pedro Peláez
 

package laravel-multi-tenant-redis

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

image

um-flint/laravel-multi-tenant-redis

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

  • Thursday, February 2, 2017
  • by dowilcox
  • Repository
  • 4 Watchers
  • 0 Stars
  • 315 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

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., (*1)

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., (*2)

Before installing it would be a good idea to clear the application cache., (*3)

Installation

Add to your composer.json file, (*4)

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

Register the package

In config/app.php add the service provider., (*5)

UMFlint\Cache\MultiTenantRedisServiceProvider::class,

Update config/cache.php

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

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

The Versions

02/02 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

laravel redis

02/02 2017

v0.0.2

0.0.2.0

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

  Sources   Download

MIT

The Requires

 

laravel redis

02/02 2017

v0.0.1

0.0.1.0

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

  Sources   Download

MIT

The Requires

 

laravel redis