2017 © Pedro Peláez
 

library laravel-memcachier

Memcachier.com Cache Driver for Laravel 4

image

aheissenberger/laravel-memcachier

Memcachier.com Cache Driver for Laravel 4

  • Monday, August 4, 2014
  • by aheissenberger
  • Repository
  • 2 Watchers
  • 4 Stars
  • 340 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

Installation

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

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

Next, update Composer from Terminal, (*3)

$ 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:, (*4)

'Aheissenberger\MemcachierCache\CacheServiceProvider',

Configuration

Open app/config/cache.php and find the driver key and change to memcached., (*5)

Replace the existing memcached configuration with this lines with authentification details and server:, (*6)

    '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!!!, (*7)

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

enjoy, (*8)

The Versions

04/08 2014

dev-master

9999999-dev https://github.com/aheissenberger/laravel-memcachier

Memcachier.com Cache Driver for Laravel 4

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Andreas Heissenberger

laravel memcachier