#subscribe #redis #pubsub

redis-subscribe

Easily subscribe and unsubscribe to redis pubsub

4 releases

0.2.1 Jan 22, 2022
0.2.0 Dec 18, 2021
0.1.1 Dec 11, 2021
0.1.0 Dec 8, 2021

#1167 in Database interfaces

MIT license

33KB
736 lines

Redis subscription

Easily subscribe and unsubscribe 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 or even 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–13MB
~139K SLoC