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

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

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

tillkruss/laravel-phpredis

最新稳定版本:v1.1.0

Composer 安装命令:

composer require tillkruss/laravel-phpredis

包简介

A Redis driver for Laravel and Lumen that works with PhpRedis, the PECL Redis Extension.

README 文档

README

Build Status Latest Stable Version License

This package provides a drop-in replacement for Laravel’s and Lumen’s RedisServiceProvider, that adds compatibility for PhpRedis, the PECL Redis Extension.

Using PhpRedis instead of Predis with Laravel’s default RedisServiceProvider will result in false-positives across the framework, because PhpRedis returns false instead of null if a key does not exist.

Requirements

  • PHP 5.5.9+
  • Laravel 5.1+
  • Lumen 5.1+
  • PhpRedis 2.2.8+

Laravel Installation

First, install this package via Composer:

composer require tillkruss/laravel-phpredis

Then open your app configuration file and remove (or comment-out) the default Redis service provider from your providers list:

// Illuminate\Redis\RedisServiceProvider::class,

Next, register the new service provider by adding it to the end of your providers list:

TillKruss\LaravelPhpRedis\RedisServiceProvider::class,

Finally, make sure you already renamed or removed the alias for Redis in your aliases list.

Lumen Installation

First, install this package via Composer:

composer require tillkruss/laravel-phpredis

If you haven’t already, install illuminate/redis as well:

composer require illuminate/redis

Next, register the Redis service provider in your bootstrap/app.php file.

$app->register(TillKruss\LaravelPhpRedis\RedisServiceProvider::class);

Finally, if you have not called $app->withEloquent() in your bootstrap/app.php file, then you need to call $app->configure('database'); to ensure the Redis database configuration is properly loaded.

License

This package is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 4
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固