Exemple #1
0
 def incr(self, *key):
     mk = self.mc_key % '_'.join(map(str, key))
     if mc.get(mk) is not None:
         mc.incr(mk)
Exemple #2
0
 def incr(self, *args):
     key = self.key_pattern%args
     return mc.incr(key)