     setValue: (val) -> @value = val
 
     on: (event, callback) ->
-      app.redis.pubsub.subscribe(@key)
+      app.redis.pubsub.subscribe(buildKey(@key))
       getEventEmitter(@key).on(event, callback)
       @
 


    events[key]

  app.redis.pubsub.subscribe('newData')

  app.redis.pubsub.on 'message', (topic, value) ->
    if topic != 'newData'
      data = new Data(topic, value)
      getEventEmitter(topic).emit('change', data)
    else

globalEventEmitter = new EventEmitter()
events = {}

KEYS_SET_NAME = 'topics'

module.exports = (app) ->

