Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alfa6661/laravel-mongodb-cache
- Owner: alfa6661
- Created: 2017-09-06T07:31:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-01T22:55:26.000Z (about 5 years ago)
- Last Synced: 2024-04-03T12:21:11.554Z (9 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Mongodb Cache
A MongoDB cache driver for LaravelInstallation
------------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 mongodbCACHE_DRIVER=mongodb