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');
    }
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');
    }
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' ) ; }
Returns whether a record as been limited or not.

@param array $record

@return bool
Returns whether a record as been limited or not .