private function setCachedStats(Collection $stats)
    {
        $expiresAt = Carbon::now()->addMinutes(15);
        $stats  = $stats->toArray();

        Cache::put(self::CACHE_NAME, $stats, $expiresAt);

        $this->fireEvent('cache_updated', array($stats));
    }
private function setCachedStats(Collection $stats)
    {
        $expiresAt = Carbon::now()->addMinutes(15);
        $stats  = $stats->toArray();

        Cache::put(self::CACHE_NAME, $stats, $expiresAt);

        $this->fireEvent('cache_updated', array($stats));
    }
private function setCachedStats ( Collection $ stats ) { $ expiresAt = Carbon :: now ( ) -> addMinutes ( 15 ) ; $ stats = $ stats -> toArray ( ) ; Cache :: put ( self :: CACHE_NAME , $ stats , $ expiresAt ) ; $ this -> fireEvent ( 'cache_updated' , array ( $ stats ) ) ; }
Set new stats data to cache.

@param \Illuminate\Support\Collection $stats
Set new stats data to cache .