vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php
/**
     * Increment the counter for a given key for a given decay time.
     *
     * @param  string  $key
     * @param  float|int  $decayMinutes
     * @return int
     */
Increment the counter for a given key for a given decay time.
@param  string  $key
@param  float|int  $decayMinutes
@return int
Increment the counter for a given key for a given decay time . @param string $key @param float|int $decayMinutes @return int
public function hit($key, $decayMinutes = 1)
    {
        $added = $this->cache->add($key, 0, $decayMinutes);
        $hits = (int) $this->cache->increment($key);
        if (! $added && $hits == 1) {
            $this->cache->put($key, 1, $decayMinutes);
        }
        return $hits;
    }
public function hit ( $ key , $ decayMinutes = 1 ) { $ added = $ this -> cache -> add ( $ key , 0 , $ decayMinutes ) ; $ hits = ( int ) $ this -> cache -> increment ( $ key ) ; if ( ! $ added && $ hits == 1 ) { $ this -> cache -> put ( $ key , 1 , $ decayMinutes ) ; } return $ hits ; }
Increment the counter for a given key for a given decay time.
Increment the counter for a given key for a given decay time .