Package Data | |
---|---|
Maintainer Username: | orzcc |
Maintainer Contact: | orzcczh@gmail.com (orzcc) |
Package Create Date: | 2015-05-07 |
Package Last Update: | 2015-12-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:25:20 |
Package Statistics | |
---|---|
Total Downloads: | 1,337 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
Aliyun ocs for Laravel5.
= PHP 5.4 with ext-memcached
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';
You can now use Laravel5's cache follow the document, http://laravel.com/docs/5.0/cache