def insert(self): #print "MAdmin insert %s %s %s"%(self._name,self._incrkey,self.get("_incrvalue")); if self._incrkey and not self._incrvalue: memkey = self.get("_incrvalue") if not memkey: memkey = util.GetTableIncrValue(self._name) self._incrvalue = memkey #print "MAdmin insert gettable %s"%(self._incrvalue); MemObject.insert(self)
def insert(self): if self._incrkey: self._incrvalue = util.GetTableIncrValue(self._name) MemObject.insert(self)
def insert(self): """将MAdmin配置的信息写入memcached中保存。\n当在其他的进程中实例化相同的配置的MAdmin,可以使得数据同步。 """ if self._incrkey and not self.get("_incrvalue"): self._incrvalue = util.GetTableIncrValue(self._name) MemObject.insert(self)
def insert(self): if self._incrkey and not self.get("_incrvalue"): self._incrvalue = util.GetTableIncrValue(self._name) MemObject.insert(self)