swiggles/memcache

Memcache driver for Laravel 5

2.0.1 2016-12-07 18:25 UTC

README

Build Status

Laravel 5 Memcache Driver

If you're developing on Windows and you're having trouble setting up Memcached with Laravel.

Developed for using a taggable cache store and testing it locally on a Windows OS.

========

Installation

Make sure you've got both a memcached server and the memcache php extension installed. http://stannesi.blogspot.co.uk/2011/11/how-to-install-memcache-on-xampp.html

Add the package to your composer.json and run composer update.

Update: added Laravel 5 support, not BC

"swiggles/memcache": "~2.0"

Use the below for older versions of laravel 5

"swiggles/memcache": "~1.0"

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

'Swiggles\Memcache\MemcacheServiceProvider',

You may now update your config/cache.php config file to use memcache

	'default' => 'memcache',

You may now update your config/session.php config file to use memcache

	'driver' => 'memcache',

Notice: This memcache driver uses the same config as Memcached

This package originated from https://github.com/igormatkovic/Laravel-4-Memcache. It has been modified to work with Laravel 5.2.

Changes

  • [2.0] Laravel 5.2 support added, (not bc)
  • [2.0.1] Removed support for PHP 5.4
  • [2.0.2] Laravel ~5.0 support added