(self,key,values)
return memclient.mclient.set(key,values,time=self._timeout)
修改对象的值
修改对象的值
修改对象的值
def update(self,key,values):
        '''修改对象的值
        '''
        if self._cas and not self.isLocked():
            for _ in xrange(10):
                if not self.lock():
                    gevent.sleep(0.2)
                    continue
                break
            else:
                return None
        key = self.produceKey(key)
        return memclient.mclient.set(key,values,time=self._timeout)
def update ( self , key , values ) : if self . _cas and not self . isLocked ( ) : for _ in xrange ( 10 ) : if not self . lock ( ) : gevent . sleep ( 0.2 ) continue break else : return None key = self . produceKey ( key ) return memclient . mclient . set ( key , values , time = self . _timeout )