Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

komparu/laravel-mongodb-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": {
    "komparu/laravel-mongodb-cache": "dev-master"
  }
}

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

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

About

A MongoDB cache driver for Laravel 4 and the package jenssegers\mongodb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%