(self)
插入对象记录
插入对象记录
插入对象记录
def insert(self):
        '''插入对象记录
        '''
        nowdict = dict(self.__dict__)
        newmapping = dict([(self.produceKey(keyname),nowdict[keyname]) for keyname in nowdict.keys() if not keyname.startswith('_')])
        memclient.mclient.set_multi(newmapping,time=self._timeout)
def insert ( self ) : nowdict = dict ( self . __dict__ ) newmapping = dict ( [ ( self . produceKey ( keyname ) , nowdict [ keyname ] ) for keyname in nowdict . keys ( ) if not keyname . startswith ( '_' ) ] ) memclient . mclient . set_multi ( newmapping , time = self . _timeout )