laravel-multiple-cache-driver maintained by calvinlam
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
- require the package
- add
CacheServiceProviderto laravel providers inconfig/app.php. - change your cache driver to
multiple-driverinconfig/cache.phplike
'stores' => [
'redis' =>[
'driver' => 'multiple-driver',
...
],
],