

@classmethod
def increment(cls, key):
    cache_key = cls._get_cache_key(key)
    try:
        return cache.incr(cache_key)
    except ValueError:
        cache.set(cache_key, 1)
        return 1

dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/cache_utils.py ExponentialBackoff.increment/original