Example #1
0
 def __init__(self):
     RedisDatabase.__init__(self)
     self.key_name = "hb_packet"
     self.set_name = "curr_idfs"
     # reset packet_tag
     self.redis.hset(self.key_name,"packet_tag",0)
     self.redis.hset(self.key_name,"expire_idfs","")
     self.redis.hset(self.key_name,"traffic_exceed_idfs","")
     pass
Example #2
0
 def __init__(self, service_idf):
     RedisDatabase.__init__(self)
     self.service_idf = service_idf
     pass