| Package Data | |
|---|---|
| Maintainer Username: | atyagi |
| Maintainer Contact: | ankit.tyagi.2@gmail.com (Ankit Tyagi) |
| Package Create Date: | 2014-07-27 |
| Package Last Update: | 2018-04-20 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:00:18 |
| Package Statistics | |
|---|---|
| Total Downloads: | 312,781 |
| Monthly Downloads: | 122 |
| Daily Downloads: | 0 |
| Total Stars: | 25 |
| Total Watchers: | 2 |
| Total Forks: | 10 |
| Total Open Issues: | 3 |
AWS Elasticache Session and Cache Drivers for Laravel (Memcached specifically)
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.
All configuration lives within app/session.php and app/cache.php. The key ones are below:
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>'
]
]
]
...
]