Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/al-one/laravel-redis-extendable

Laravel RedisManager Extendable
https://github.com/al-one/laravel-redis-extendable

laravel laravel-redis redis

Last synced: about 1 month ago
JSON representation

Laravel RedisManager Extendable

Awesome Lists containing this project

README

        

# Laravel Redis Manager Extendable

> 1.5.4支持Laravel 5.4 - 5.6版本
>
> 1.5.7支持Laravel 5.7及以上版本

## Installing

```
# composer.json

"minimum-stability": "dev",
"prefer-stable": true,
```

```sh
# 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

```php
# config/app.php
[
// Illuminate\Redis\RedisServiceProvider::class,
Alone\LaravelRedisExtendable\RedisServiceProvider::class,
],

];
```

```php
use Illuminate\Support\Facades\Redis;

Redis::extend('predis_listened',function()
{
return new \Alone\LaravelPredisListened\PredisListenedConnector;
});
```

## License

MIT