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