Skip to content

A CakePHP cache engine for Aliyun OCS(Open Cache Service) support.

Notifications You must be signed in to change notification settings

toboto/cakephp-ocscache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun OCS(Open Cache Service) Cache Engine for CakePHP 2.4

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:

Author

Murray Wang (toboto) http://weibo.com/tobotorui

email to wangrui@teeker.com

About

A CakePHP cache engine for Aliyun OCS(Open Cache Service) support.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages