Skip to content

alfa6661/laravel-mongodb-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Mongodb Cache

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

About

A MongoDB cache driver for Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages