New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

dpollard/elasticache-laravel

Elasticache Drivers for Laravel Cache and Session
45,605
Install
composer require dpollard/elasticache-laravel
Latest Version:3.0.4
PHP:>=5.4.0
Laravel:5
Older releases:4
License:MIT
Last Updated:Jul 7, 2016
Links: GitHub  ·  Packagist
Maintainer: dpollard

Elasticache Laravel

Build Status Coverage Status Packagist

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": "~2.1" to your composer.json. (or "atyagi/elasticache-laravel": "~1.1" for Laravel 4 installations)

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
  • 2.* represents all versions for Laravel 5
  • 1.* represents all versions for Laravel 4

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

Note: for Laravel 5, make sure to add this info to the stores array as follows:

'stores' => [
  ...
  'memcached' => [
    'driver' => 'memcached',
    'servers' => [
      [
        'host' => '<YOUR HOST>',
        'port' => '<YOUR_PORT>',
        'weight' => '<YOUR_WEIGHT>'
        ]
      ]
    ]
    ...
  ]

Related Packages

atyagi/elasticache-laravel

Elasticache Drivers for Laravel Cache and Session

313,495 25
sergiqg/aws-redis-free-memory

Get the free memory of a redis cluster

3,030 0
db1-fpp/laravel-elasticache

Add new cache and session driver to use AWS ElastiCache with auto discovery

1,318 2
baopham/dynamodb

Eloquent syntax for DynamoDB

6,512,927 497
betalabs/dynamodb

Eloquent syntax for DynamoDB

19,939 0

Version History

Version Released PHP Laravel License
3.0.4 >=5.4.0 5.* MIT
3.0.3 >=5.4.0 5.* MIT
3.0.1 >=5.4.0 5.* MIT
2.1.0 >=5.4.0 5.* MIT
2.0.2 >=5.4.0 5.0.* MIT