snowsoft/laravelmongodbcache

A MongoDB cache driver for Laravel

Maintainers

Package info

github.com/snowsoft/laravelmongodbcache

pkg:composer/snowsoft/laravelmongodbcache

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2020-12-26 22:19 UTC

This package is auto-updated.

Last update: 2026-02-27 09:29:23 UTC


README

A MongoDB cache driver for Laravel

Installation

Make sure you have jenssegers\mongodb installed before you continue.

Install using composer:

composer require snowsoft/laravel-mongodb-cache

Add the session service provider in app/config/app.php:

'Nlk\Mongodb\Cache\MongoCacheServiceProvider::class',

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