2017 © Pedro Peláez
 

library phpredis

PhpRedis for Lumen 5.*

image

targetliu/phpredis

PhpRedis for Lumen 5.*

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 7 Open issues
  • 8 Versions
  • 17 % Grown

The README.md

PhpRedis for Lumen 5.*

Update

1.2.1

  1. Different database use different connections.(According to issue #2)

1.2.0

  1. You can chose different Redis connections.(According to issue #1)

1.1.0

  1. Move cache driver to Target\PHPRedis\Cache .
  2. Add a Queue driver.

Installation

  • Install PhpRedis
  • Run composer require targetliu/phpredis
  • Configure redis in .env

Basic

  • Add $app->register(TargetLiu\PHPRedis\PHPRedisServiceProvider::class); in bootstrap/app.php

Cache Driver

  • Add $app->register(TargetLiu\PHPRedis\Cache\CacheServiceProvider::class); in bootstrap/app.php in order to use PhpRedis with Lumen cache
  • Add
'phpredis' => [
    'driver' => 'phpredis',
    'connection' => 'default',
],

to stores in config/cache.php or vendor/larvel/lumen-framework/config/app.php in order to use PhpRedis with Lumen cache, (*1)

  • Set CACHE_DRIVER=phpredis in .env

Queue Driver

  • Add $app->register(TargetLiu\PHPRedis\Queue\QueueServiceProvider::class); in bootstrap/app.php in order to use PhpRedis with Lumen queue
  • Add
'phpredis' => [
    'driver'     => 'phpredis',
    'connection' => 'default',
    'queue'      => 'default',
    'expire'     => 60,
],

to connections in config/queue.php or vendor/larvel/lumen-framework/config/queue.php in order to use PhpRedis with Lumen queue, (*2)

  • Set QUEUE_DRIVER=phpredis in .env

Usage

About the author

The Versions

20/09 2016

dev-master

9999999-dev

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

20/09 2016

1.2.1

1.2.1.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

10/09 2016

1.2.0

1.2.0.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

29/07 2016

1.1.0

1.1.0.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

27/07 2016

1.0.3

1.0.3.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

22/07 2016

1.0.2

1.0.2.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

19/07 2016

1.0.1

1.0.1.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires

 

19/07 2016

1.0.0

1.0.0.0

PhpRedis for Lumen 5.*

  Sources   Download

The Requires