承接 urbanindo/yii2-elasticmemcache 相关项目开发

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

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

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

Latest Stable Version Total Downloads Latest Unstable Version Build Status

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

GitHub 信息

  • Stars: 2
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-24