Add support for PubSub
One of the great features of Redis is being able to subscribe and receive messages published to specific channels as a way of acting as a message queue for processing jobs.
PubSub requires a specific understanding of the connection model that can only be implemented directly in this library.
RedisPubSubHandlerto sit in front of
RedisCommandHandlerto manage subscription callbacks and Redis registration
- Add: Type-safe String wrapper of
RedisChannelNamefor PubSub methods
- Add: Metrics for PubSub
makeNewPoolfactory method to
RedisClientto require methods for PubSub management, as they are intrinsicly tied to the client's connection model
- Change: Parsing of
PINGresponse for handling special case in PubSub mode
Developers will now be able to use Redis in PubSub mode with both connections and pools.
This resolves #6 (closed)