Skip to content

samwalshnz/elasticache-laravel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticache Laravel

Build Status Coverage Status

AWS Elasticache Session and Cache Drivers for Laravel (Memcached specifically)

Setup

This package requires the memcached extension for PHP. Please see this link for installation instructions.

With composer, simply add "atyagi/elasticache-laravel": "dev-master" to your composer.json.

Once composer update is ran, add

'Atyagi\Elasticache\ElasticacheServiceProvider',

to the providers array in app/config.php.

At this point, inside of app/session.php and app/cache.php, you can use elasticache as a valid driver.

Versions

Configuration

All configuration lives within app/session.php and app/cache.php. The key ones are below:

Session.php

  • lifetime -- the session lifetime within the Memcached environment
  • cookie -- this is the prefix for the session ID to prevent clashing

Cache.php

  • memcached -- follow the Laravel defaults for host/port information

About

Elasticache Session and Cache Drivers for Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%