#redis #pubsub #subscribe

redis-pubsub

Fork of redis-subscribe which also supports publishing

1 unstable release

0.0.1 Apr 9, 2022

#37 in #subscribe

MIT license

34KB
744 lines

Redis subscription

Easily subscribe, unsubscribe, and publish to redis pubsub.

Why this package?

Currently the redis crate does not allow to subscribe or unsubscribe after you attached a listener, as you can see in this issue. This crate aims to resolve this.

What doesn't it do?

Almost everything! It only handles subscriptions, so it cannot set/get keys. This version does support publishing. Use the redis crate instead, this one works well with all other features.

Usage

Take a look at the example folder to see usage examples.

Dependencies

~4–15MB
~157K SLoC