locked
Azure Redis Cache Preview and PUBSUB RRS feed

  • Question

  • Does the REDIS cache preview have support for PUBSUB?

    I am especially looking for event notification on key data. This would be if values are created, updated or deleted (manually or due to timeout).

    Thanks

    Sunday, August 10, 2014 6:38 AM

Answers

  • We currently do not support enabling keyspace events. But it is high on our backlog list. Stay tuned.


    Program Manager Azure


    Tuesday, August 12, 2014 8:30 PM

All replies

  • Hi,

    Do you mean if PUBSUB feature is included in Azure Redis Cache ? If so then, yes it is.

    If you are looking for technical support for PUBSUB, then unfortunately since it is in preview, there is currently no support for it. 

    However, please have a check on the below links and see if it helps.

    http://msdn.microsoft.com/en-US/library/azure/dn766201.aspx

    http://msdn.microsoft.com/en-US/library/azure/ff424684.aspx

    Hope this helps.

    Regards,

    Mekh.

    Sunday, August 10, 2014 11:38 AM
  • Hi,

    I am interested in keyspace events. From the Redis documentation it appears that these have to be specifically enabled in the Redis configuration.

    "By default keyspace events notifications are disabled because while not very sensible the feature uses some CPU power. Notifications are enabled using the notify-keyspace-events of redis.conf or via the CONFIG SET."

    Currently when I setup a callback as below, it is not getting called. I expect it to be called when data changes.

            HashSet<string> received = new HashSet<string>();
            private void Subscribe(ConnectionMultiplexer conn)
            {
                Action<RedisChannel, RedisValue> 
    
                keyEventHandler = (channel, payload) =>
                {
                    received.Add(payload);
                };
    
                var sub = conn.GetSubscriber();
                sub.Subscribe("__keyspace@0__:*", keyEventHandler);
            }

    Sunday, August 10, 2014 6:45 PM
  • We currently do not support enabling keyspace events. But it is high on our backlog list. Stay tuned.


    Program Manager Azure


    Tuesday, August 12, 2014 8:30 PM
  • Please add keyspace events!
    Sunday, November 9, 2014 12:25 PM