al-one / laravel-redis-extendable
Laravel RedisManager Extendable
v1.5.7-beta2
2019-10-29 13:21 UTC
Requires
- php: >=7.1.3
- illuminate/contracts: ~5.7 || ^6.0
- illuminate/redis: ~5.7 || ^6.0
- illuminate/support: ~5.7 || ^6.0
This package is auto-updated.
Last update: 2024-10-25 19:18:08 UTC
README
1.5.4支持Laravel 5.4 - 5.6版本
1.5.7支持Laravel 5.7及以上版本
Installing
# composer.json
"minimum-stability": "dev",
"prefer-stable": true,
# Laravel 5.4 - 5.6 $ composer require "al-one/laravel-redis-extendable:~1.5.4" -vvv # Laravel 5.7 $ composer require "al-one/laravel-redis-extendable:~1.5.7" -vvv
Usage
# config/app.php <?php return [ 'providers' => [ // Illuminate\Redis\RedisServiceProvider::class, Alone\LaravelRedisExtendable\RedisServiceProvider::class, ], ];
use Illuminate\Support\Facades\Redis; Redis::extend('predis_listened',function() { return new \Alone\LaravelPredisListened\PredisListenedConnector; });
License
MIT