public function increment($key, $value, \DatePeriod $period = null)
    {
        if (is_null($period)) {
            $this->repository->increment($key, $value);
        } else {
            $this->incrementForPeriod($key, $value, $period);
        }
    }