code: def handle(self, dict):
          '''
          Processes a vaild zookeeper request
  
          @param dict: a valid dictionary object
          '''
          # format key
          key = "zk:{action}:{domain}:{appid}".format(
                  action=dict['action'],
                  appid=dict['appid'],
                  domain=dict['domain'])
  
          d = {"domain": dict['domain'], "uuid": dict['uuid']}
  
          if dict['action'] == 'domain-update':
              if dict['hits'] != 0 and dict['window'] != 0:
                  d["hits"] = dict['hits']
                  d['scale'] = dict['scale']
                  d['window'] = dict['window']
              else:
                  self.logger.error("'hits' and 'window' not set for domain update")
                  return None
  
          value = ujson.dumps(d)
  
          self.redis_conn.set(key, value)
  
          dict['parsed'] = True
          dict['valid'] = True
          self.logger.info('Added zookeeper action to Redis', extra=dictf handle(self, dict):
          '''
          Processes a vaild zookeeper request
  
          @param dict: a valid dictionary object
          '''
          # format key
          key = "zk:{action}:{domain}:{appid}".format(
                  action=dict['action'],
                  appid=dict['appid'],
                  domain=dict['domain'])
  
          d = {"domain": dict['domain'], "uuid": dict['uuid']}
  
          if dict['action'] == 'domain-update':
              if dict['hits'] != 0 and dict['window'] != 0:
                  d["hits"] = dict['hits']
                  d['scale'] = dict['scale']
                  d['window'] = dict['window']
              else:
                  self.logger.error("'hits' and 'window' not set for domain update")
                  return None
  
          value = ujson.dumps(d)
  
          self.redis_conn.set(key, value)
  
          dict['parsed'] = True
          dict['valid'] = True
          self.logger.info('Added zookeeper action to Redis', extra=dict)
docs: Processes a vaild zookeeper request
  
          @param dict: a valid dictionary object