2017 © Pedro Peláez
 

library laravel-phpredis

Use phpredis as the redis connection in Laravel

image

kingnet/laravel-phpredis

Use phpredis as the redis connection in Laravel

  • Thursday, July 2, 2015
  • by jinguoxing
  • Repository
  • 2 Watchers
  • 2 Stars
  • 283 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

laravel-phpredis

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

Requirements

PHP 5.4+br/ Laravel 5.x, (*2)

Installation


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

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

// 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:, (*4)

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

Finally run composer update to update and install everything., (*5)

Configuration

Just use php artisan vendor:publish and a phpredis.php file will be created in your config directory., (*6)

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

Contribution guidelines

Please report any issue you find in the issues page.br/ Pull requests are welcome., (*8)

The Versions

02/07 2015

dev-master

9999999-dev

Use phpredis as the redis connection in Laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar jinguoxing

laravel redis phpredis

27/06 2015

1.2.0.x-dev

1.2.0.9999999-dev

Use phpredis as the redis connection in Laravel

  Sources   Download

MIT

by Avatar jinguoxing

laravel redis phpredis