class Redis::Subscription
- Redis::Subscription
- Reference
- Object
Overview
Models a subscription to one or more publish/subscribe channels.
The caller sets callbacks on this object that the Redis client will trigger for the matching events.
Defined in:
redis/subscription.crInstance Method Summary
-
#message(&message_callback : String, String -> )
Sets the 'message' callback.
-
#pmessage(&pmessage_callback : String, String, String -> )
Sets the 'pmessage' callback.
-
#psubscribe(&psubscribe_callback : String, Int64 -> )
Sets the 'psubscribe' callback.
-
#punsubscribe(&punsubscribe_callback : String, Int64 -> )
Sets the 'punsubscribe' callback.
-
#subscribe(&subscribe_callback : String, Int64 -> )
Sets the 'subscribe' callback.
-
#unsubscribe(&unsubscribe_callback : String, Int64 -> )
Sets the 'unsubscribe' callback.