public function top($limit = 5, $isLow = false)
    {
        $cacheKey = $this->keys->cache($limit, $isLow);
        $cachedList = $this->cachedList($limit, $cacheKey);
        $visitsIds = $this->getVisitsIds($limit, $this->keys->visits, $isLow);

        if($visitsIds === $cachedList->pluck($this->keys->primary)->toArray() && ! $this->fresh) {
            return $cachedList;
        }

        return $this->freshList($cacheKey, $visitsIds);
    }
public function top($limit = 5, $isLow = false)
    {
        $cacheKey = $this->keys->cache($limit, $isLow);
        $cachedList = $this->cachedList($limit, $cacheKey);
        $visitsIds = $this->getVisitsIds($limit, $this->keys->visits, $isLow);

        if($visitsIds === $cachedList->pluck($this->keys->primary)->toArray() && ! $this->fresh) {
            return $cachedList;
        }

        return $this->freshList($cacheKey, $visitsIds);
    }
public function top ( $ limit = 5 , $ isLow = false ) { $ cacheKey = $ this -> keys -> cache ( $ limit , $ isLow ) ; $ cachedList = $ this -> cachedList ( $ limit , $ cacheKey ) ; $ visitsIds = $ this -> getVisitsIds ( $ limit , $ this -> keys -> visits , $ isLow ) ; if ( $ visitsIds === $ cachedList -> pluck ( $ this -> keys -> primary ) -> toArray ( ) && ! $ this -> fresh ) { return $ cachedList ; } return $ this -> freshList ( $ cacheKey , $ visitsIds ) ; }
Fetch all time trending subjects.

@param int $limit
@param bool $isLow
@return \Illuminate\Support\Collection|array
Fetch all time trending subjects .