Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alfa6661/laravel-mongodb-cache

A MongoDB cache driver for Laravel
https://github.com/alfa6661/laravel-mongodb-cache

Last synced: 3 months ago
JSON representation

A MongoDB cache driver for Laravel

Awesome Lists containing this project

README

        

# Laravel Mongodb Cache
A MongoDB cache driver for Laravel

Installation
------------

Make sure you have [jenssegers\mongodb](https://github.com/jenssegers/Laravel-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