calvinlam/laravel-multiple-cache-driver

Cache data to Redis and Database

dev-master 2020-09-22 09:06 UTC

This package is auto-updated.

Last update: 2025-06-22 19:21:47 UTC


README

Cache your data to Redis and Database. Get your data from Redis unless its empty.

Requirement

  • Laravel 6.0+
  • Reids
  • MySQL

Installation

composer require 
  1. require the package
  2. add CacheServiceProvider to laravel providers in config/app.php.
  3. change your cache driver to multiple-driver in config/cache.php like
'stores' => [
    'redis' =>[
        'driver' => 'multiple-driver',
        ...
    ],
],