Skip to content

Levsha-cc/laravel-memcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Laravel 5 Memcache Driver

If you're on a windows PC and you're having trouble setting up memcached with laravel then this is what you need.

Handy for when you want to use a taggable cache store and test it out on your localhost.

========

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.

"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 was originally a fork of https://github.com/igormatkovic/Laravel-4-Memcache. It has been modified to work with Laravel 5 which meant that more than just the service provider needed changing.