https://github.com/vansteen/laravel-mongodb-cache
A MongoDB cache driver for Laravel 4 and the package jenssegers\mongodb
https://github.com/vansteen/laravel-mongodb-cache
laravel mongodb
Last synced: 8 months ago
JSON representation
A MongoDB cache driver for Laravel 4 and the package jenssegers\mongodb
- Host: GitHub
- URL: https://github.com/vansteen/laravel-mongodb-cache
- Owner: vansteen
- License: mit
- Created: 2014-08-19T09:35:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-06-03T19:47:36.000Z (about 10 years ago)
- Last Synced: 2025-01-29T10:22:35.433Z (over 1 year ago)
- Topics: laravel, mongodb
- Language: PHP
- Homepage:
- Size: 137 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://github.com/jenssegers/Laravel-MongoDB).
For more information about Caches, check http://laravel.com/docs/cache.
Installation
------------
Make sure you have [jenssegers\mongodb](https://github.com/jenssegers/Laravel-MongoDB) installed and configured before you continue.
Add the package to your `composer.json` and run `composer update`.
```php
{
"require": {
"vansteen/laravel-mongodb-cache": "dev-master"
}
}
```
Add the cache service provider in `app/config/app.php`:
```php
'Vansteen\Mongodb\Cache\MongodbCacheServiceProvider',
```
Change the cache driver in `app/config/cache.php` to mongodb:
```php
'driver' => 'mongodb',
```
Change the cache connection to a database connection using the mongodb driver from `app/config/database.php`:
```php
'connection' => 'my_mongodb_connection',
```