(self)
插入对象记录
插入对象记录
插入对象记录
def insert(self):
        '''
        插入对象记录
        '''
        nowdict = dict(self.__dict__)
        newmapping = dict([(self.produceKey(item_key), item_value.value) for item_key,item_value in\
                            nowdict.items() if isinstance(item_value, MemFields) and item_value.value])
        memclient.mclient.set_multi(newmapping,time=self._timeout)
def insert ( self ) : nowdict = dict ( self . __dict__ ) newmapping = dict ( [ ( self . produceKey ( item_key ) , item_value . value ) for item_key , item_value in nowdict . items ( ) if isinstance ( item_value , MemFields ) and item_value . value ] ) memclient . mclient . set_multi ( newmapping , time = self . _timeout )