aheissenberger/laravel-memcachier

Memcachier.com Cache Driver for Laravel 4
354 4
Install
composer require aheissenberger/laravel-memcachier
PHP:>=5.3.0
License:MIT
Last Updated:Aug 4, 2014
Links: GitHub  ·  Packagist
Maintainer: aheissenberger

Memcachier Cache Driver for Laravel 4

This is a replacement for the builtin CacheServiceProvider with support for Memcachier a managed hosted Memcache. As it replaces Memcached you can also use this driver to support sessions.

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require aheissenberger/laravel-memcachier

"require": {
    "laravel/framework": "4.1.*",
    "aheissenberger/laravel-memcachier": "dev-master"
}

Next, update Composer from Terminal

$ composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and replace Illuminate\Cache\CacheServiceProvider with:

'Aheissenberger\MemcachierCache\CacheServiceProvider',

Configuration

Open app/config/cache.php and find the driver key and change to memcached.

Replace the existing memcached configuration with this lines with authentification details and server:

	'memcached' => array(
		'username' => 'un', 'password' => 'pw', 'servers' => '1.1.1.1.1', 'weight' => 100
	),

If the driver cannot find cache.memcached.username it will try to load cache.memcached.host'] and connects to this server. You can use this to simulate memcachier with your local memcached server. Multiple Servers are not supported!!!

	'memcached' => array(
		'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
	),

enjoy

Related Packages

windevalley/laravel-memcached-plus

Extends the built-in Laravel 5 Cache Memcached driver adding support for persist...

13 2
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

631,580,251 9,707
laravel/framework

The Laravel Framework.

580,311,802 34,925
laravel/tinker

Powerful REPL for the Laravel framework.

489,754,436 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

404,034,618 608