2017 © Pedro Peláez
 

library aliyun-ocs

Aliyun ocs for Laravel5

image

orzcc/aliyun-ocs

Aliyun ocs for Laravel5

  • Monday, December 28, 2015
  • by orzcc
  • Repository
  • 1 Watchers
  • 4 Stars
  • 462 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 10 % Grown

The README.md

Aliyun OCS

Aliyun ocs for Laravel5., (*1)

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., (*2)

composer require orzcc/aliyun-ocs

This service provider must be registered., (*3)

// config/app.php

'providers' => [
    '...',
    'Orzcc\AliyunOcs\AliyunOcsServiceProvider',
];

At last, you can edit the config file: config/cache.php., (*4)

add a stores config to the file, change your ocs config, (*5)

'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, (*6)

'default' => 'ocs';

Usage

You can now use Laravel5's cache follow the document, http://laravel.com/docs/5.0/cache, (*7)

The Versions

28/12 2015

dev-master

9999999-dev https://github.com/orzcc/aliyun-ocs

Aliyun ocs for Laravel5

  Sources   Download

MIT

The Requires

 

by Avatar orzcc

laravel aliyun ocs