alfa6661 / laravel-mongodb-cache
A MongoDB cache driver for Laravel
Installs: 3 684
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=7.0.0
- illuminate/cache: ^5.5|^6.0
- jenssegers/mongodb: *
This package is auto-updated.
Last update: 2024-11-29 04:58:03 UTC
README
A MongoDB cache driver for Laravel
Installation
Make sure you have jenssegers\mongodb installed before you continue.
Install using composer:
composer require alfa6661/laravel-mongodb-cache
Add the session service provider in app/config/app.php
:
'Alfa6661\Mongodb\Cache\MongoCacheServiceProvider',
Add mongodb cache store in app/config/cache.php
'stores' => [
/...
'mongodb' => [
'driver' => 'mongodb',
'table' => 'cache',
'connection' => null,
],
],
Update your .env file and change the CACHE_DRIVER
to mongodb
CACHE_DRIVER=mongodb