toboto / cakephp-ocscache
Aliyun OCS Plugin for CakePHP 2.x Framework
1.0
2019-12-24 09:35 UTC
Requires
- php: >=5.3.0
- cakephp/cakephp: >=2.4
Requires (Dev)
- phpunit/phpunit: 3.7.*
Suggests
- cakephp/cakephp-codesniffer: Easily check code formatting against the CakePHP coding standards.
This package is auto-updated.
Last update: 2024-10-24 21:25:22 UTC
README
Requirements
- PHP5 (with Memcached module and SASL support)
- CakePHP = 2.4
Installation
cd your_cake_app/app/Plugin
git clone git://github.com/toboto/cakephp-ocscache.git Ocs
Configuration sample in Config/bootstrap.php
<?php
CakePlugin::load('Ocs');
Cache::config('default', array(
'engine' => 'Ocs.Ocs',
'duration' => 3600,
'probability' => 0, // [deprecated] The cache will not flush in this engine.
'prefix' => 'myapp_ocscache_'
'servers' => array(
array('your_instance.m.cnqdalicm9pub001.ocs.aliyuncs.com', 11211)
// The engine supports only one OCS instance because of the limit in OCS authentication.
),
'username' => 'your_instance',
'password' => 'password'
));
Reference
PHP5 and Memcached module with SASL support: https://drupal.org/node/2063811
For Chinese developer, the references of Memcached with SASL are:
- CentOS: http://help.aliyun.com/view/11108324_13444498.html?spm=5176.7225337.1997284509.3.335dUr
- Ubuntu: http://bbs.aliyun.com/read/150127.html?spm=5176.7114037.1996646101.13.hLUJwA
Author
Murray Wang (toboto) http://weibo.com/tobotorui
email to wangrui@teeker.com