urbanindo/yii2-elasticmemcache
最新稳定版本:1.0.1
Composer 安装命令:
composer require urbanindo/yii2-elasticmemcache
包简介
Yii2 component for elastic memcache without node discovery plugin
README 文档
README
Yii2 component for AWS Elasticache Memcache without node discovery plugin
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist urbanindo/yii2-elasticmemcache "*"
or add
"urbanindo/yii2-elasticmemcache": "*"
to the require section of your composer.json file.
Usage
'components' => [ 'cache' => [ 'class' => UrbanIndo\Yii2\ElasticMemcache\Cache::class, 'serverConfigs' => [ [ 'host' => 'CacheClusterConfiguration1.cache.amazonaws.com', // modify this 'port' => 11211, 'weight' => 60, ], [ 'host' => 'CacheClusterConfiguration2.cache.amazonaws.com', // modify this 'port' => 11211, 'weight' => 40, ] ], 'cache' => [ 'class' => yii\caching\FileCache::class ] ] ]
Running Test
- copy test/template-local.php to local.php
- modify it to your aws elasticache configuration
- run
vendor/bin/phpunit --bootstrap test/bootstrap.php test/CacheTest
统计信息
- 总下载量: 19.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-24