Download the PHP package friendsofhyperf/redis-subscriber without Composer
On this page you can find all versions of the php package friendsofhyperf/redis-subscriber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download friendsofhyperf/redis-subscriber
More information about friendsofhyperf/redis-subscriber
Files in friendsofhyperf/redis-subscriber
Download friendsofhyperf/redis-subscriber
More information about friendsofhyperf/redis-subscriber
Files in friendsofhyperf/redis-subscriber
Vendor friendsofhyperf
Package redis-subscriber
Short Description Redis native protocol Subscriber based on Swoole coroutine
License MIT
Package redis-subscriber
Short Description Redis native protocol Subscriber based on Swoole coroutine
License MIT
Please rate this library. Is it a good library?
Informations about the package redis-subscriber
Redis Subscriber
Forked from mix-php/redis-subscriber
A Redis native protocol Subscriber based on Swoole coroutine
A Redis native protocol subscription library based on Swoole coroutine
It connects directly to the Redis server using a Socket, independent of the phpredis extension. This subscriber has the following advantages:
- Smooth modification: Subscriptions can be added or canceled at any time, fulfilling the need for seamless channel switching.
- Safe closure across coroutines: Subscription can be closed at any moment.
- Channel message retrieval: This library's encapsulation style is inspired by the go-redis library in the Go language, retrieving subscribed messages through a channel.
Installation
Subscribing to Channels
- Connection or subscription failures will throw an exception
Receiving subscribed messages:
All Methods
Method | Description |
---|---|
subscribe(string ...$channels) : void | Add subscriptions |
unsubscribe(string ...$channels) : void | Cancel subscriptions |
psubscribe(string ...$channels) : void | Add pattern subscriptions |
punsubscribe(string ...$channels) : void | Cancel pattern subscriptions |
channel() : Hyperf\Engine\Channel | Retrieve the message channel |
close() : void | Close the subscription |
License
MIT
All versions of redis-subscriber with dependencies
PHP Build Version
Package Version
Requires
hyperf/coordinator Version
~3.1.0
hyperf/coroutine Version ~3.1.0
hyperf/engine Version ^2.1
hyperf/coroutine Version ~3.1.0
hyperf/engine Version ^2.1
The package friendsofhyperf/redis-subscriber contains the following files
Loading the files please wait ....