code: def cache_incr(self, key):
          
          cache.set(key, cache.get(key, 0) + 1, self.expire_after())
docs: Non-atomic cache increment operation. Not optimal but
          consistent across different cache backends.