protected function isLimited(array $record)
    {
        if ($this->rateLimit <= 0) {
            return false;
        }

        $key = 'logger:lock:' . $this->identifyRecord($record);

        return !(bool) $this->redis->set($key, '', 'EX', $this->rateLimit, 'NX');
    }