Looking to hire Laravel developers? Try LaraJobs

laravel-multiple-cache-driver maintained by calvinlam

Description
Cache data to Redis and Database
Author
Last update
2020/09/22 11:06 (dev-master)
License
Links
Downloads
1

Comments
comments powered by Disqus

Multiple Cache Driver

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',
        ...
    ],
],