承接 kingnet/laravel-phpredis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kingnet/laravel-phpredis

Composer 安装命令:

composer require kingnet/laravel-phpredis

包简介

Use phpredis as the redis connection in Laravel

README 文档

README

laravel 5.1

PhpRedis The phpredis extension provides an API for communicating with the Redis key-value store. It is released under the PHP License, version 3.01. This code has been developed and maintained by Owlient from November 2009 to March 2011.

Requirements

PHP 5.4+
Laravel 5.x

Installation

	    
"require": {
    "kingnet/laravel-phpredis":"dev-master"
}

Add the PhpRedisServiceProvider to config/app.php (comment out built-in RedisServiceProvider):

// Illuminate\Redis\RedisServiceProvider::class,
//phpredis provider
    KingNet\PhpRedis\PhpRedisServiceProvider::class,

The default Facade alias conflicts with the Redis class provided by PhpRedis. To fix this, rename the alias in config/app.php:

'PhpRedis'  => KingNet\PhpRedis\Facede::class,

Finally run composer update to update and install everything.

Configuration

Just use php artisan vendor:publish and a phpredis.php file will be created in your config directory.

Usage

use PhpRedis;


class PhpredisController extends Controller
{
  
    public function test()
    {

        PhpRedis::set('myname','kingnet');
        dd(PhpRedis::get('myname'));

    }

    
}

License

This is free software distributed under the terms of the MIT license.

Contribution guidelines

Please report any issue you find in the issues page.
Pull requests are welcome.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-27