class Redis::Subscription

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.cr

Instance Method Summary

Instance Method Detail

def message(&message_callback : String, String -> ) #

Sets the 'message' callback.


[View source]
def pmessage(&pmessage_callback : String, String, String -> ) #

Sets the 'pmessage' callback.


[View source]
def psubscribe(&psubscribe_callback : String, Int64 -> ) #

Sets the 'psubscribe' callback.


[View source]
def punsubscribe(&punsubscribe_callback : String, Int64 -> ) #

Sets the 'punsubscribe' callback.


[View source]
def subscribe(&subscribe_callback : String, Int64 -> ) #

Sets the 'subscribe' callback.


[View source]
def unsubscribe(&unsubscribe_callback : String, Int64 -> ) #

Sets the 'unsubscribe' callback.


[View source]