承接 atyagi/elasticache-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

atyagi/elasticache-laravel

最新稳定版本:2.1.0

Composer 安装命令:

composer require atyagi/elasticache-laravel

包简介

Elasticache Drivers for Laravel Cache and Session

README 文档

README

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>'
        ]
      ]
    ]
    ...
  ]

统计信息

  • 总下载量: 313.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 25
  • Watchers: 2
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-27