vansteen / laravel-mongodb-cache
A MongoDB cache driver for Laravel 4 using the Laravel MongoDB package jenssegers/mongodb
Installs: 2 825
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=5.4.0
- jenssegers/mongodb: *
Suggests
- jenssegers/mongodb-sentry: Add Sentry support to Laravel-MongoDB
- jenssegers/mongodb-session: Add MongoDB session support to Laravel-MongoDB
This package is auto-updated.
Last update: 2024-12-16 02:58:52 UTC
README
Currently in dev but this version seems fullly working. I need to do a last check and write few tests.
A MongoDB cache driver for Laravel 4 and the package jenssegers\mongodb.
For more information about Caches, check http://laravel.com/docs/cache.
Installation
Make sure you have jenssegers\mongodb installed and configured before you continue.
Add the package to your composer.json
and run composer update
.
{ "require": { "vansteen/laravel-mongodb-cache": "dev-master" } }
Add the cache service provider in app/config/app.php
:
'Vansteen\Mongodb\Cache\MongodbCacheServiceProvider',
Change the cache driver in app/config/cache.php
to mongodb:
'driver' => 'mongodb',
Change the cache connection to a database connection using the mongodb driver from app/config/database.php
:
'connection' => 'my_mongodb_connection',