@@ -80,7 +80,7 @@ class MemcacheClientObj(Client):
|
|||||||
newKey = self.__keyFormat__(key)
|
newKey = self.__keyFormat__(key)
|
||||||
obj = Client.get(self, newKey)
|
obj = Client.get(self, newKey)
|
||||||
if obj:
|
if obj:
|
||||||
if isinstance(obj,(int,double,long)):
|
if isinstance(obj,(int,float,long)):
|
||||||
return Client.incr(self, newKey, value)
|
return Client.incr(self, newKey, value)
|
||||||
else:
|
else:
|
||||||
value += obj[1]
|
value += obj[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user