Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TargetLiu/PHPRedis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

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

  • 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

  • Set QUEUE_DRIVER=phpredis in .env

Usage

About the author

About

PhpRedis for Lumen 5.*

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /