orzcc/aliyun-ocs
Composer 安装命令:
composer require orzcc/aliyun-ocs
包简介
Aliyun ocs for Laravel5
README 文档
README
Aliyun ocs for Laravel5.
Requirements
-
= PHP 5.4 with ext-memcached
- To use ocs must with SASL support, make sure memcached.use_sasl ON at php.ini
Installation
This package can be installed through Composer.
composer require orzcc/aliyun-ocs
This service provider must be registered.
// config/app.php 'providers' => [ '...', 'Orzcc\AliyunOcs\AliyunOcsServiceProvider', ];
At last, you can edit the config file: config/cache.php.
add a stores config to the file, change your ocs config
'ocs' => [ 'driver' => 'ocs', 'servers' => [ [ 'host' => 'Your ocs host', 'port' => 11211, // ocs port 'weight' => 100, // 如果免密码登录,则删除以下两行 'authname' => 'Your ocs auth name', 'authpass' => 'Your ocs auth pass', ], ], ],
change default to ocs
'default' => 'ocs';
Usage
You can now use Laravel5's cache follow the document, http://laravel.com/docs/5.0/cache
统计信息
- 总下载量: 1.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-07