public function loadEntriesFromLastDays($days)
    {
        $entries = $this
            ->entryRepository
            ->getEntriesFromLastDays($days);

        foreach ($entries as $entry) {
            $this
                ->metricsBucket
                ->add($entry);
        }

        return $entries;
    }
public function loadEntriesFromLastDays($days)
    {
        $entries = $this
            ->entryRepository
            ->getEntriesFromLastDays($days);

        foreach ($entries as $entry) {
            $this
                ->metricsBucket
                ->add($entry);
        }

        return $entries;
    }
public function loadEntriesFromLastDays ( $ days ) { $ entries = $ this -> entryRepository -> getEntriesFromLastDays ( $ days ) ; foreach ( $ entries as $ entry ) { $ this -> metricsBucket -> add ( $ entry ) ; } return $ entries ; }
Load metrics from last X days and cache them.

@param int $days Number of days you want to load and cache

@return EntryInterface[] Array of loaded entries
Load metrics from last X days and cache them .