emresari89 / laravel-mongodb-cache
A MongoDB cache driver for Laravel
Package info
github.com/emresari89/laravel-mongo-cache
Type:project
pkg:composer/emresari89/laravel-mongodb-cache
v1.0.0
2021-10-18 20:43 UTC
Requires
- php: >=7.0.0
- illuminate/cache: *
- jenssegers/mongodb: *
This package is auto-updated.
Last update: 2026-03-19 06:23:16 UTC
README
A MongoDB cache driver for Laravel
Installation
Make sure you have jenssegers\mongodb installed before you continue.
Install using composer:
composer require emresari89/laravel-mongo-cache
Add the session service provider in app/config/app.php:
'Emresar\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