def METHOD_NAME(self) -> None:
    self._last_prefix = None
    try:
        prefix = self.cache.incr(self.prefixkey, 1)
    except ValueError:
        prefix = int(time.time())
        self.cache.set(self.prefixkey, prefix)