luciano-jr/laravel-aerospike 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luciano-jr/laravel-aerospike

最新稳定版本:0.2.1

Composer 安装命令:

composer require luciano-jr/laravel-aerospike

包简介

Service to use Aerospike Cache in Laravel 5

README 文档

README

A service to use Aerospike Cache on Laravel 5

Installation

1. Dependency

Using composer, execute the following command to automatically update your composer.json:

composer require luciano-jr/laravel-aerospike

or manually update your composer.json file

{
	"require": {
		"luciano-jr/laravel-aerospike": "dev-master"
	}
}

2. Provider

You need to update your application configuration in order to register the package, so it can be loaded by Laravel. Just update your config/app.php file adding the following code at the end of your 'providers' section:

// file START ommited
    'providers' => [
        // other providers ommited
        Lucianojr\Aerospike\Providers\AerospikeServiceProvider::class,
    ],
// file END ommited

2.1 Publishing configuration file

To publish the default configuration file, execute the following command:

php artisan vendor:publish

You can also publish only the configuration file:

php artisan vendor:publish --tag=config

If you already published aerospike files, but for some reason you want to override previous published files, add the --force flag.

3. Facade (optional)

In order to use the AerospikeCache facade, you need to register it on the config/app.php file, you can do that the following way:

// config.php file
// file START ommited
    'aliases' => [
        // other Facades ommited
        'AerospikeCache' => Lucianojr\Aerospike\Facades\AerospikeFacade::class,
    ],
// file END ommited

统计信息

  • 总下载量: 2.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-19