dietervds/laravel4-ironcache

Iron.io cache service provider for Laravel 4

Installs: 84

Dependents: 0

Stars: 6

Watchers: 3

Forks: 2

Language: PHP

v1.1 2013-11-25 20:44 UTC

README

Implements IronCache (http://www.iron.io/cache) as a Laravel 4 cache driver.

Installation

Add laravel4-ironcache to your composer.json file:

"require": {
  "dietervds/laravel4-ironcache": "dev-master"
}

Run composer to pull it in:

$ composer update

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

'Dietervds\IronCache\IronCacheServiceProvider',

Configuration

Publish the package-specific configuration file:

php artisan config:publish dietervds/laravel4-ironcache

This will create a configuration file in app/config/packages/dietervds/laravel4-ironcache/config.php.
Open it and give it the neccesary Iron.io credentials and cache name.

Set your cache driver in app/config/cache.php:

'driver' => 'ironcache',

Usage

Once the above steps are complete, you can use Ironcache as you would any cache function in Laravel.
More on how to do this, check out the Laravel cache documentation: http://laravel.com/docs/cache

Feedback

This is my first own open-source package, so any feedback is even more welcomed then it otherwise is.
I'm looking to learn from this, so don't be shy!