vansteen / laravel-mongodb-cache by vansteen

A MongoDB cache driver for Laravel 4 using the Laravel MongoDB package jenssegers/mongodb
2,825
4
1
Package Data
Maintainer Username: vansteen
Maintainer Contact: tom@vansteen.me (Thomas Van Steenwinckel)
Package Create Date: 2014-08-19
Package Last Update: 2016-06-03
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-30 03:04:19
Package Statistics
Total Downloads: 2,825
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 1
Total Forks: 3
Total Open Issues: 0

Laravel MongoDB Cache

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',