Download the PHP package mix/redis-subscriber without Composer
On this page you can find all versions of the php package mix/redis-subscriber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mix/redis-subscriber
More information about mix/redis-subscriber
Files in mix/redis-subscriber
Download mix/redis-subscriber
More information about mix/redis-subscriber
Files in mix/redis-subscriber
Vendor mix
Package redis-subscriber
Short Description Redis native protocol Subscriber based on Swoole coroutine
License Apache-2.0
Homepage https://openmix.org/mix-php
Package redis-subscriber
Short Description Redis native protocol Subscriber based on Swoole coroutine
License Apache-2.0
Homepage https://openmix.org/mix-php
Please rate this library. Is it a good library?
Informations about the package redis-subscriber
Mix Redis Subscriber
Redis native protocol Subscriber based on Swoole coroutine
基于 Swoole 协程的 Redis 原生协议订阅库
使用 Socket 直接连接 Redis 服务器,不依赖 phpredis 扩展,该订阅器有如下优点:
- 平滑修改:可随时增加、取消订阅通道,实现无缝切换通道的需求。
- 跨协程安全关闭:可在任意时刻关闭订阅。
- 通道获取消息:该库封装风格参考 golang 语言 go-redis 库封装,通过 channel 获取订阅的消息。
Installation
- Swoole >= 4.4
订阅频道
- 连接、订阅失败会抛出异常
接收到订阅消息:
全部方法
方法 | 描述 |
---|---|
subscribe(string ...$channels) : void | 增加订阅 |
unsubscribe(string ...$channels) : void | 取消订阅 |
channel() : Swoole\Coroutine\Channel | 获取消息通道 |
close() : void | 关闭订阅 |
License
Apache License Version 2.0, http://www.apache.org/licenses/
All versions of redis-subscriber with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
ext-swoole Version >=4.4.4
ext-swoole Version >=4.4.4
The package mix/redis-subscriber contains the following files
Loading the files please wait ....