hashtap/memcache

Memcache driver for Laravel


Keywords
memcache, cache, caching, laravel
License
MIT

Documentation

Build Status

Laravel 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

"hashtap/memcache": "~2.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
  • [2.0.3] Support Laravel 7.0